fixed connect notify

master
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,
HandshakeMessage.doneToClient(message.connectKey))
if (newSession) {
listenerManager.notifyConnect(newConnection)
} else {
listenerManager.notifyConnect(newConnection)
if (!newSession) {
(newConnection as SessionConnection).sendPendingMessages()
}
} catch (e: Exception) {