Apparently Arios submits null packets sometimes.

This commit is contained in:
ceikry 2021-07-19 14:32:39 -05:00
parent 176c6b9677
commit 78f857c719

View file

@ -29,7 +29,7 @@ object PacketWriteQueue {
@JvmStatic
fun flush(){
while(!PacketsToWrite.isEmpty()){
val p = PacketsToWrite.poll()
val p = PacketsToWrite.poll() ?: continue
write(p.out,p.context)
}
}