mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +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;
|
$compressionLevel = $this->networkCompressionLevel;
|
||||||
}else{
|
}else{
|
||||||
$compressionLevel = 0; //Do not compress packets under the threshold
|
$compressionLevel = 0; //Do not compress packets under the threshold
|
||||||
|
$forceSync = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$forceSync and !$immediate and $this->networkCompressionAsync){
|
if(!$forceSync and !$immediate and $this->networkCompressionAsync){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user