summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/update.php b/update.php
index 3ddce89ff..f5623e04f 100644
--- a/update.php
+++ b/update.php
@@ -387,12 +387,15 @@ function update_progress_page() {
* the overall percent finished. The second element is a status message.
*/
function update_do_updates() {
- while (($update = reset($_SESSION['update_remaining'])) && timer_read('page') < 1000) {
+ while (($update = reset($_SESSION['update_remaining']))) {
$update_finished = update_data($update['module'], $update['version']);
if ($update_finished) {
// Dequeue the completed update.
unset($_SESSION['update_remaining'][key($_SESSION['update_remaining'])]);
}
+ if (timer_read('page') > 1000) {
+ break;
+ }
}
if ($_SESSION['update_total']) {