mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Updated Threads use the new commit
This commit is contained in:
parent
6cd51dbbf6
commit
386decf268
2 changed files with 9 additions and 2 deletions
|
|
@ -181,7 +181,12 @@ class ConsoleAPI{
|
|||
}
|
||||
|
||||
class ConsoleLoop extends Thread{
|
||||
var $line = false, $stop = false;
|
||||
public $line, $stop;
|
||||
public function __construct(){
|
||||
$this->line = false;
|
||||
$this->stop = false;
|
||||
}
|
||||
|
||||
public function run(){
|
||||
$fp = fopen("php://stdin", "r");
|
||||
while($this->stop === false and ($line = fgets($fp)) !== false){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue