Skip to content

Commit

Permalink
MDL-62709 core_message: fix for silently ignored errors in task
Browse files Browse the repository at this point in the history
  • Loading branch information
pennedav authored and mdjnelson committed Jun 14, 2018
1 parent 50e48a8 commit 8791c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions message/classes/task/migrate_message_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public function execute() {
$this->migrate_data($userid, $otheruserid);
$transaction->allow_commit();
} catch (\Throwable $e) {
$updatepreference = false;
throw $e;
} finally {
$lock->release();
}

$lock->release();
} else {
// Couldn't get a lock, move on to next user but make sure we don't update user preference so
// we still try again.
Expand Down

0 comments on commit 8791c50

Please sign in to comment.