mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +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:
@@ -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){
|
||||||
|
Reference in New Issue
Block a user