]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try/catch on omb profile pings
authorBrion Vibber <brion@pobox.com>
Fri, 26 Feb 2010 05:06:16 +0000 (21:06 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 26 Feb 2010 05:06:53 +0000 (21:06 -0800)
lib/profilequeuehandler.php

index e8a00aef307bfb4aa7e92fb945a9c963f7366e9e..6ce93229b249abe5d31ea5d839b60e3f87e85951 100644 (file)
@@ -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;