summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-25 21:06:16 -0800
committerBrion Vibber <brion@pobox.com>2010-02-25 21:06:16 -0800
commitda4b21d3a95a9d669ea323145dd62eb27297f846 (patch)
tree45dcb3a30908eedbb5e46d3f9fbc778edd28b0cd
parent02300ebfb08bfcd52f4ab34d1041455079ebf2ec (diff)
try/catch on omb profile pings
-rw-r--r--lib/profilequeuehandler.php6
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;