mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +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){
|
||||
$poolSize = max(1, $processors);
|
||||
}
|
||||
}else{
|
||||
$poolSize = (int) $poolSize;
|
||||
}
|
||||
|
||||
ServerScheduler::$WORKERS = $poolSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user