Apparently Arios submits null packets sometimes.
This commit is contained in:
@@ -29,7 +29,7 @@ object PacketWriteQueue {
|
|||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun flush(){
|
fun flush(){
|
||||||
while(!PacketsToWrite.isEmpty()){
|
while(!PacketsToWrite.isEmpty()){
|
||||||
val p = PacketsToWrite.poll()
|
val p = PacketsToWrite.poll() ?: continue
|
||||||
write(p.out,p.context)
|
write(p.out,p.context)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user