Server restart without closing, added more info

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-12 00:07:55 +01:00
parent 29d253fd93
commit fb019a88c1
6 changed files with 26 additions and 9 deletions

View File

@ -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();
}
}
}
}