mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Server restart without closing, added more info
This commit is contained in:
parent
29d253fd93
commit
fb019a88c1
6 changed files with 26 additions and 9 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue