some small fixes for the web SDK

This commit is contained in:
kremsy
2017-05-24 21:02:47 +02:00
parent cb095b15c6
commit a9b01f139f
3 changed files with 12 additions and 9 deletions

View File

@ -221,8 +221,9 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
$this->getTimerManager()->registerOneTimeListening($this, function () use ($data) {
if (is_object($data) && property_exists($data, "message")) {
$this->restart($data->message);
} else {
$this->restart();
}
$this->restart();
}, 3000);
return new CommunicationAnswer();
});
@ -514,7 +515,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
// Announce restart
try {
$this->getChat()->sendInformation('Restarting ManiaControl...');
$this->getChat()->sendInformation('Restarting ManiaControl...', null, true, false);
} catch (TransportException $e) {
}
Logger::log('Restarting ManiaControl... ' . $message);