Skip to content

Commit

Permalink
fix: install signal handlers should occur after plugins started
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jul 3, 2024
1 parent c80e188 commit abd1815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/native/message_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion internal/native/mock_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit abd1815

Please sign in to comment.