mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Fix :DD (remove temp. feature)
This commit is contained in:
parent
47e9a7b6a1
commit
2a4d2a92ab
@ -267,7 +267,7 @@ class ConsoleLoop extends Thread{
|
||||
|
||||
public function run(){
|
||||
$fp = fopen("php://stdin", "r");
|
||||
if(HAS_EVENT){
|
||||
if(HAS_EVENT and false){
|
||||
$this->base = new EventBase();
|
||||
$this->ev = new Event($this->base, $fp, Event::READ | Event::PERSIST, array($this, "readLine"));
|
||||
$this->ev->add();
|
||||
@ -279,8 +279,10 @@ class ConsoleLoop extends Thread{
|
||||
}
|
||||
}
|
||||
}else{
|
||||
while($this->stop === false){
|
||||
$this->readLine($fp);
|
||||
while($this->stop === false and ($line = fgets($fp)) !== false){
|
||||
$this->line = $line;
|
||||
$this->wait();
|
||||
$this->line = false;
|
||||
}
|
||||
}
|
||||
@fclose($fp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user