mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Server: fix crash when specifying settings.async-workers on the command-line
This commit is contained in:
parent
e56e363dcc
commit
9397356ce4
@ -1527,6 +1527,8 @@ class Server{
|
|||||||
if($processors > 0){
|
if($processors > 0){
|
||||||
$poolSize = max(1, $processors);
|
$poolSize = max(1, $processors);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
$poolSize = (int) $poolSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
ServerScheduler::$WORKERS = $poolSize;
|
ServerScheduler::$WORKERS = $poolSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user