fixed connect notify
This commit is contained in:
parent
1b235e21aa
commit
ba57447169
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue