mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12: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(){
|
public function stop(){
|
||||||
for($n = 0; $n < $this->threads; ++$n){
|
for($n = 0; $n < $this->threads; ++$n){
|
||||||
$this->workers[$n]->close();
|
if(isset($this->workers[$n]) && $this->workers[$n] instanceof RCONInstance){
|
||||||
$this->workers[$n]->join();
|
$this->workers[$n]->close();
|
||||||
usleep(50000);
|
$this->workers[$n]->join();
|
||||||
$this->workers[$n]->kill();
|
//usleep(50000);
|
||||||
|
//$this->workers[$n]->kill();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@socket_close($this->socket);
|
@socket_close($this->socket);
|
||||||
$this->threads = 0;
|
$this->threads = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue