mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed 77
This commit is contained in:
parent
070755ba8e
commit
88d7859b6b
1 changed files with 6 additions and 4 deletions
|
|
@ -39,10 +39,12 @@ class RCON{
|
|||
|
||||
public function stop(){
|
||||
for($n = 0; $n < $this->threads; ++$n){
|
||||
$this->workers[$n]->close();
|
||||
$this->workers[$n]->join();
|
||||
usleep(50000);
|
||||
$this->workers[$n]->kill();
|
||||
if(isset($this->workers[$n]) && $this->workers[$n] instanceof RCONInstance){
|
||||
$this->workers[$n]->close();
|
||||
$this->workers[$n]->join();
|
||||
//usleep(50000);
|
||||
//$this->workers[$n]->kill();
|
||||
}
|
||||
}
|
||||
@socket_close($this->socket);
|
||||
$this->threads = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue