Skip to content

Commit 0d2c0e0

Browse files
committed
always pass microseconds to usleep as integers
1 parent 5ca8a76 commit 0d2c0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private function checkThrottling()
104104
$sleep = (1 / $this->rate) - (microtime(true) - $this->lastSent);
105105
if (0 < $sleep) {
106106
$this->logger->debug(sprintf('Email transport "%s" sleeps for %.2f seconds', __CLASS__, $sleep));
107-
usleep($sleep * 1000000);
107+
usleep((int) ($sleep * 1000000));
108108
}
109109
$this->lastSent = microtime(true);
110110
}

0 commit comments

Comments
 (0)