Skip to content

Commit c0aa2f9

Browse files
committed
Fix error case in node connection procedure.
In case if new connection to remote EndPoint failed to create, this means that all reliable connections (that are used in d-p) also failed. As a result this means that we need to emit `Died (node) Disconnect` event. Previously we emited `Died typeOfReceiver Disconnect` event.
1 parent 91350b2 commit c0aa2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Control/Distributed/Process/Internal/Messaging.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sendPayload node from to implicitReconnect payload = do
7474
unless didSend $ do
7575
writeChan (localCtrlChan node) NCMsg
7676
{ ctrlMsgSender = to
77-
, ctrlMsgSignal = Died to DiedDisconnect
77+
, ctrlMsgSignal = Died (NodeIdentifier $ nodeOf to) DiedDisconnect
7878
}
7979

8080
sendBinary :: Binary a

0 commit comments

Comments
 (0)