Skip to content

Commit ceab0cf

Browse files
authored
Counter must start at 1 because we always try 1 attempt at least
1 parent b8c596f commit ceab0cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pub/worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
};
5050

5151
$maxRequests = (int)($_SERVER['MAX_REQUESTS'] ?? 0);
52-
$nbRequests = 0;
52+
$nbRequests = 1;
5353
do {
5454
$keepRunning = \frankenphp_handle_request($handler);
5555
} while ($keepRunning && !$maxRequests && $nbRequests++ < $maxRequests);

0 commit comments

Comments
 (0)