mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
Force sync 'compression' under the batch threshold
Since we aren't actually compressing these anyway, only writing a checksum, sending these asynchronously causes strange bugs due to race conditions.
This commit is contained in:
parent
87e54d7a3a
commit
9cc27b2719
@ -1815,6 +1815,7 @@ class Server{
|
||||
$compressionLevel = $this->networkCompressionLevel;
|
||||
}else{
|
||||
$compressionLevel = 0; //Do not compress packets under the threshold
|
||||
$forceSync = true;
|
||||
}
|
||||
|
||||
if(!$forceSync and !$immediate and $this->networkCompressionAsync){
|
||||
|
Loading…
x
Reference in New Issue
Block a user