From 5fdb73888613e9fd73375b8d0029bcaa45d6ea00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Wed, 7 May 2014 17:56:52 +0200 Subject: [PATCH] minor improvement --- application/core/ManiaControl.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index 957b3d7d..09dd7101 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -369,9 +369,7 @@ class ManiaControl implements CommandListener, TimerListener { } catch (TransportException $e) { $this->log("Connection interrupted!"); // TODO remove - if ($this->errorHandler) { - $this->errorHandler->handleException($e, false); - } + $this->errorHandler->handleException($e, false); $this->quit($e->getMessage()); } @@ -380,8 +378,7 @@ class ManiaControl implements CommandListener, TimerListener { // Yield for next tick $loopEnd = microtime(true); - - $sleepTime = (int)(2000 - ($loopEnd - $loopStart) * 1000000); + $sleepTime = (int)(2500 - ($loopEnd - $loopStart) * 1000000); if ($sleepTime > 0) { usleep($sleepTime); }