Improved logout handling

This commit is contained in:
Ceikry
2023-06-02 01:34:01 +00:00
committed by Ryan
parent 817d2f0ec2
commit 9a25c2a87d
8 changed files with 57 additions and 21 deletions
@@ -21,6 +21,7 @@ class PacketWriteQueue {
is UpdateSceneGraph,
is BuildDynamicScene,
is InstancedLocationUpdate,
is Logout,
is ClearRegionChunk -> packet.send(context)
//Rest get queued up and sent at the end of the tick (authentic)
else -> push(packet, context)
@@ -65,4 +66,4 @@ class PacketWriteQueue {
}
}
class QueuedPacket<T>(val out: OutgoingPacket<T>, val context: T)
class QueuedPacket<T>(val out: OutgoingPacket<T>, val context: T)