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 7a43629..9491cb2 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;
 
-                       // 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. :(