Merge pull request #1125 from Fate-JH/fixed-relog

Return Relog
This commit is contained in:
Fate-JH 2023-08-15 15:06:38 -04:00 committed by GitHub
commit c68d5e9864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -505,16 +505,14 @@ class MiddlewareActor(
case Teardown() =>
send(TeardownConnection(clientNonce))
close()
Behaviors.same
case Close() =>
close()
Behaviors.same
}
.receiveSignal(onSignal)
}
private def close(): Unit = {
private def close(): Behavior[Command] = {
outQueue
.dequeueAll(_ => true)
.foreach(p => send(smp(slot = 0, p._2.bytes), Some(nextSequence), crypto))