Errors from time_sleep_until() are now ignored, it may sometimes happen and annoying...
authorRoland Häder <roland@mxchange.org>
Mon, 18 Apr 2011 20:53:00 +0000 (20:53 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 18 Apr 2011 20:53:00 +0000 (20:53 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index 7a43629c0abf8dc23034e7b64f7bee5dab8d63d4..9491cb23c2015afaf8ddf9894542481e19a6fd6b 100644 (file)
@@ -1368,8 +1368,8 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                        // Get current time and add idle time
                        $sleepUntil = $this->getMilliTime() + abs($milliSeconds) / 1000;
 
                        // Get current time and add idle time
                        $sleepUntil = $this->getMilliTime() + abs($milliSeconds) / 1000;
 
-                       // New PHP 5.1.0 function found
-                       $hasSlept = time_sleep_until($sleepUntil);
+                       // New PHP 5.1.0 function found, ignore errors
+                       $hasSlept = @time_sleep_until($sleepUntil);
                } else {
                        // My Sun Station doesn't have that function even with latest PHP
                        // package. :(
                } else {
                        // My Sun Station doesn't have that function even with latest PHP
                        // package. :(