php8 console fix

This commit is contained in:
GameHerobrine 2022-12-24 17:32:33 +03:00
parent ab0b726904
commit a907a7cf5e
2 changed files with 6 additions and 6 deletions

View file

@ -304,11 +304,11 @@ class ConsoleLoop extends Thread{
}
while(!$this->stop){
$this->synchronized(function($t){
$t->line = $t->readLine();
$t->wait();
}, $this);
$this->line = false;
$this->line = $this->readLine();
$this->synchronized(function($t) {
$this->wait();
$this->line = false;
}, $this);
}
if(!extension_loaded("readline")){