fixed connect notify

This commit is contained in:
Robinson 2023-10-26 21:19:07 +02:00
parent 1b235e21aa
commit ba57447169
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 3 additions and 3 deletions

View File

@ -158,9 +158,9 @@ internal class ServerHandshake<CONNECTION : Connection>(
logInfo, logInfo,
HandshakeMessage.doneToClient(message.connectKey)) HandshakeMessage.doneToClient(message.connectKey))
if (newSession) { listenerManager.notifyConnect(newConnection)
listenerManager.notifyConnect(newConnection)
} else { if (!newSession) {
(newConnection as SessionConnection).sendPendingMessages() (newConnection as SessionConnection).sendPendingMessages()
} }
} catch (e: Exception) { } catch (e: Exception) {