소스 검색

Fix Timer::sleep

walkor 2 년 전
부모
커밋
36f409ad7d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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');