Make sure that the global disconnect handler is also called

This commit is contained in:
Robinson 2022-08-04 00:34:48 +02:00
parent 401f29a9a2
commit 8deee6c0a7
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -126,6 +126,7 @@ internal class ServerHandshake<CONNECTION : Connection>(
// 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)
}
}