From: Brion Vibber Date: Fri, 26 Feb 2010 05:06:16 +0000 (-0800) Subject: try/catch on omb profile pings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=da4b21d3a95a9d669ea323145dd62eb27297f846;p=quix0rs-gnu-social.git try/catch on omb profile pings --- diff --git a/lib/profilequeuehandler.php b/lib/profilequeuehandler.php index e8a00aef30..6ce93229b2 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;