Skip to content

Commit

Permalink
[HttpKernel] fixed wrong usage of sleep()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 4, 2010
1 parent 5a724fd commit d876ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Components/HttpKernel/Cache/Cache.php
Expand Up @@ -453,7 +453,7 @@ protected function lock(Request $request, Response $entry)
// wait for the lock to be released
$wait = 0;
while (file_exists($lock) && $wait < 5) {
sleep($wait += 0.05);
usleep($wait += 50000);
}

if ($wait < 2) {
Expand Down

0 comments on commit d876ea0

Please sign in to comment.