From 8deee6c0a7e31a70dd222d703b4ab9ed3175e817 Mon Sep 17 00:00:00 2001 From: Robinson Date: Thu, 4 Aug 2022 00:34:48 +0200 Subject: [PATCH] Make sure that the global disconnect handler is also called --- src/dorkbox/network/handshake/ServerHandshake.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dorkbox/network/handshake/ServerHandshake.kt b/src/dorkbox/network/handshake/ServerHandshake.kt index 4e47978d..fcb86182 100644 --- a/src/dorkbox/network/handshake/ServerHandshake.kt +++ b/src/dorkbox/network/handshake/ServerHandshake.kt @@ -126,6 +126,7 @@ internal class ServerHandshake( // this always has to be on event dispatch, otherwise we can have weird logic loops if we reconnect within a disconnect callback actionDispatch.launch { existingConnection.doNotifyDisconnect() + listenerManager.notifyDisconnect(existingConnection) } }