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=08c17bfcaa6bce08d547afa719601139fcb0e8c6;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;