connection interrupted exception

This commit is contained in:
kremsy 2014-02-14 13:51:23 +01:00 committed by Steffen Schröder
parent 39754862f5
commit c0f4c460c1

View File

@ -299,11 +299,18 @@ class ManiaControl implements CommandListener {
// Disable script timeout
set_time_limit(self::SCRIPT_TIMEOUT);
// Manager callbacks
$this->callbackManager->manageCallbacks();
try {
// Manager callbacks
$this->callbackManager->manageCallbacks();
// Manage FileReader
$this->fileReader->appendData();
// Manage FileReader
$this->fileReader->appendData();
} catch(Exception $e) {
if ($e->getMessage() == 'Connection interupted') {
$this->quit($e->getMessage());
}
}
// Yield for next tick
$loopEnd = microtime(true);