Added stop signal check

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-14 18:34:52 +01:00
parent 8bc40d2d9c
commit 310701f7e9

View File

@ -161,6 +161,9 @@ class PocketMinecraftServer{
public function close($reason = "stop"){
if($this->stop !== true){
if(is_int($reason)){
$reason = "signal stop";
}
$this->api->chat->send(false, "Stopping server...");
$this->ticker->stop = true;
$this->save(true);