server: fix deadlock in sendToPeer at peer shutdown
This commit fixes a deadlock that could occur when a peer disconnected during a call to sentToPeer. In This particular case, a message would successfully be queued, the peer would shutdown, and we would block waiting for an error to be returned on the message's error channel, which would deadlock. This fixes that by also checking for peer shutdown.
This commit is contained in:
1 file changed
+2