diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-25 21:06:16 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-25 21:06:53 -0800 |
commit | 08c17bfcaa6bce08d547afa719601139fcb0e8c6 (patch) | |
tree | 19839309a2579ff773e03db9f494df4113845d36 /lib | |
parent | 417f5d653fb2053cd6194900eba591d42ebfcb0d (diff) |
try/catch on omb profile pings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/profilequeuehandler.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/profilequeuehandler.php b/lib/profilequeuehandler.php index e8a00aef3..6ce93229b 100644 --- a/lib/profilequeuehandler.php +++ b/lib/profilequeuehandler.php @@ -39,7 +39,11 @@ class ProfileQueueHandler extends QueueHandler if (Event::handle('StartBroadcastProfile', array($profile))) { require_once(INSTALLDIR.'/lib/omb.php'); - omb_broadcast_profile($profile); + try { + omb_broadcast_profile($profile); + } catch (Exception $e) { + common_log(LOG_ERR, "Failed sending OMB profiles: " . $e->getMessage()); + } } Event::handle('EndBroadcastProfile', array($profile)); return true; |