mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Server restart without closing, added more info
This commit is contained in:
@ -48,8 +48,12 @@ class UDPSocket{
|
||||
$this->buffer = array();
|
||||
$this->unblock();
|
||||
}else{
|
||||
socket_bind($this->sock, "0.0.0.0", $port);
|
||||
$this->unblock();
|
||||
if(socket_bind($this->sock, "0.0.0.0", $port) === true){
|
||||
$this->unblock();
|
||||
}else{
|
||||
console("[ERROR] Couldn't bind to 0.0.0.0:".$port, true, true, 0);
|
||||
die();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user