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) } }