Fixed the Socket error at close

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-22 18:21:22 +01:00
parent 1152c24bdf
commit b589b69beb
2 changed files with 2 additions and 4 deletions

View file

@ -62,9 +62,7 @@ class UDPSocket{
public function close($error = 125){
$this->connected = false;
if($error === false){
console("[ERROR] [Socket] Socket closed, Error: End of Stream");
}else{
if($error !== false){
console("[ERROR] [Socket] Socket closed, Error $error: ".socket_strerror($error));
}
return @socket_close($this->sock);