From abd18153035bd43a8de0375b61292ee20bb90d3d Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Wed, 3 Jul 2024 21:15:07 +0100 Subject: [PATCH] fix: install signal handlers should occur after plugins started --- internal/native/message_server.go | 2 +- internal/native/mock_server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/native/message_server.go b/internal/native/message_server.go index 8102e7370..9f913de28 100644 --- a/internal/native/message_server.go +++ b/internal/native/message_server.go @@ -330,8 +330,8 @@ func (m *MessageServer) UsingPlugin(pluginName string, pluginVersion string) err cPluginVersion := C.CString(pluginVersion) defer free(cPluginVersion) - InstallSignalHandlers() r := C.pactffi_using_plugin(m.messagePact.handle, cPluginName, cPluginVersion) + InstallSignalHandlers() // 1 - A general panic was caught. // 2 - Failed to load the plugin. diff --git a/internal/native/mock_server.go b/internal/native/mock_server.go index d3adcfc85..7d57dcd49 100644 --- a/internal/native/mock_server.go +++ b/internal/native/mock_server.go @@ -555,8 +555,8 @@ func (m *MockServer) UsingPlugin(pluginName string, pluginVersion string) error cPluginVersion := C.CString(pluginVersion) defer free(cPluginVersion) - InstallSignalHandlers() r := C.pactffi_using_plugin(m.pact.handle, cPluginName, cPluginVersion) + InstallSignalHandlers() // 1 - A general panic was caught. // 2 - Failed to load the plugin.