Explorar o código

Fix Timer::sleep

walkor %!s(int64=2) %!d(string=hai) anos
pai
achega
36f409ad7d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Timer.php

+ 1 - 1
src/Timer.php

@@ -173,7 +173,7 @@ class Timer
                 return;
             // Swow
             case Swow::class:
-                usleep($delay * 1000 * 1000);
+                usleep((int)$delay * 1000 * 1000);
                 return;
         }
         throw new RuntimeException('Timer::sleep() require revolt/event-loop. Please run command "composer require revolt/event-loop" and restart workerman');