Commit 4dbee045 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #600836 by tim.cosgrove, dww, naxoc, Dave Reid: prevent batches from...

Issue #600836 by tim.cosgrove, dww, naxoc, Dave Reid: prevent batches from going indefinitely if their 'finished' value becomes bigger than 1
parent 9f4bd9bd
......@@ -189,7 +189,7 @@ function _batch_process() {
call_user_func_array($function, array_merge($args, array(&$batch_context)));
}
if ($finished == 1) {
if ($finished >= 1) {
// Make sure this step isn't counted double when computing $current.
$finished = 0;
// Remove the operation and clear the sandbox.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment