Commit 823ab316 authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent an exception killing processing of the entire activity queue. Whoops!

parent 4bb025de
...@@ -190,7 +190,14 @@ function activity_process_queue() { ...@@ -190,7 +190,14 @@ function activity_process_queue() {
} }
$viewsnotified[$data->view] = true; $viewsnotified[$data->view] = true;
} }
handle_activity($activity->type, $data, true); try {
handle_activity($activity->type, $data, true);
}
catch (MaharaException $e) {
// Exceptions can happen while processing the queue, we just
// log them and continue
log_debug($e->getMessage());
}
} }
delete_records('activity_queue'); delete_records('activity_queue');
} }
......
Supports Markdown
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