Swap result sink atomically rather than closing and setting. (#4216)
To prevent WriteMessage after Close potentially.
This commit is contained in:
@@ -28,7 +28,7 @@ type ParticipantSignalHandler interface {
|
||||
}
|
||||
|
||||
type ParticipantSignaller interface {
|
||||
SetResponseSink(sink routing.MessageSink)
|
||||
SwapResponseSink(sink routing.MessageSink, reason types.SignallingCloseReason)
|
||||
GetResponseSink() routing.MessageSink
|
||||
CloseSignalConnection(reason types.SignallingCloseReason)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user