try/catch on omb profile pings

This commit is contained in:
Brion Vibber 2010-02-25 21:06:16 -08:00
parent 417f5d653f
commit 08c17bfcaa

View File

@ -39,7 +39,11 @@ class ProfileQueueHandler extends QueueHandler
if (Event::handle('StartBroadcastProfile', array($profile))) {
require_once(INSTALLDIR.'/lib/omb.php');
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;