We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dc4158 commit b66d0c5Copy full SHA for b66d0c5
src/Teamleader.php
@@ -270,7 +270,9 @@ public function ensureRateLimitingIsNotExceeded(): void
270
$seconds = Carbon::createFromFormat('Y-m-d\TH:i:sT', $this->rateLimitReset, 'UTC')->diffInSeconds();
271
$seconds++;
272
273
- sleep($seconds);
+ if ($seconds > 0) {
274
+ sleep($seconds);
275
+ }
276
}
277
278
0 commit comments