mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fix :DD (remove temp. feature)
This commit is contained in:
parent
47e9a7b6a1
commit
2a4d2a92ab
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue