mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-15 07:55:31 +00:00
ConsoleReaderThread: say what actually happened when we fail to read commands
This commit is contained in:
parent
c7bb77e24a
commit
c2c9132812
@ -104,7 +104,7 @@ final class ConsoleReaderThread extends Thread{
|
|||||||
if(stream_select($r, $w, $e, 0, 200000) === 1){
|
if(stream_select($r, $w, $e, 0, 200000) === 1){
|
||||||
$command = fgets($client);
|
$command = fgets($client);
|
||||||
if($command === false){
|
if($command === false){
|
||||||
throw new AssumptionFailedError("Something has gone horribly wrong");
|
throw new \RuntimeException("Broken connection to child process (probably killed)");
|
||||||
}
|
}
|
||||||
|
|
||||||
$buffer[] = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", $command);
|
$buffer[] = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", $command);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user