mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
RCONInstance: terminate session on ECONNRESET errors
This commit is contained in:
parent
8dae497610
commit
6b2250cbce
@ -84,6 +84,9 @@ class RCONInstance extends Thread{
|
|||||||
if($this->stop){
|
if($this->stop){
|
||||||
return false;
|
return false;
|
||||||
}elseif($d === false){
|
}elseif($d === false){
|
||||||
|
if(socket_last_error($client) === SOCKET_ECONNRESET){ //client crashed, terminate connection
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}elseif($d === "" or strlen($d) < 4){
|
}elseif($d === "" or strlen($d) < 4){
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user