Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop mux incase termination of miniprotocols timeout
When demoting a peer to cold there is a 300s timeout for the miniprotocols to terminate. In case of timeout the connection will be left hanging, it will only be unregistered. The next time the peer is promoted to warm there may still be lingering miniprotocols in an unknown state. By calling stopMux we ensure that the connection will be reset.
- Loading branch information