forked from 2009Scape/Server
Apparently Arios submits null packets sometimes.
This commit is contained in:
parent
176c6b9677
commit
78f857c719
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue