mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Server: prevent stupidity with settings.async-workers
This commit is contained in:
parent
4b99285fd6
commit
763e20ba4e
@ -1515,7 +1515,7 @@ class Server{
|
||||
$poolSize = max(1, $processors);
|
||||
}
|
||||
}else{
|
||||
$poolSize = (int) $poolSize;
|
||||
$poolSize = max(1, (int) $poolSize);
|
||||
}
|
||||
|
||||
$this->asyncPool = new AsyncPool($this, $poolSize, (int) max(-1, (int) $this->getProperty("memory.async-worker-hard-limit", 256)), $this->autoloader, $this->logger);
|
||||
|
Loading…
x
Reference in New Issue
Block a user