Skip to content

Commit

Permalink
Remove superfluous unregisterOutboundConnection call
Browse files Browse the repository at this point in the history
unregisterOutboundConnection isn't needed after stopMux.
  • Loading branch information
karknu committed Jan 18, 2022
1 parent f50acb5 commit 92f04cb
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -833,7 +833,6 @@ withPeerStateActions PeerStateActionsArguments {
case res of
Nothing -> do
Mux.stopMux pchMux
_ <- unregisterOutboundConnection spsConnectionManager (remoteAddress pchConnectionId)
atomically (writeTVar pchPeerState (PeerStatus PeerCold))
traceWith spsTracer (PeerStatusChangeFailure
(HotToWarm pchConnectionId)
Expand Down Expand Up @@ -905,7 +904,6 @@ withPeerStateActions PeerStateActionsArguments {
Nothing -> do
-- timeout fired
Mux.stopMux pchMux
_ <- unregisterOutboundConnection spsConnectionManager (remoteAddress pchConnectionId)
atomically (writeTVar pchPeerState (PeerStatus PeerCold))
traceWith spsTracer (PeerStatusChangeFailure
(WarmToCold pchConnectionId)
Expand Down

0 comments on commit 92f04cb

Please sign in to comment.