X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpublicqueuehandler.php;h=a497d13850337d88bf81c6ccb5db6a0bebcf6f4e;hb=9498a164805892a8af17311f7e7697b132524990;hp=9ea9ee73a3290af300640b7a17a6547ecc2c7a44;hpb=ec145b73fc91dd54695dd374c8a71a11e233b8c0;p=quix0rs-gnu-social.git diff --git a/lib/publicqueuehandler.php b/lib/publicqueuehandler.php index 9ea9ee73a3..a497d13850 100644 --- a/lib/publicqueuehandler.php +++ b/lib/publicqueuehandler.php @@ -23,7 +23,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { /** * Queue handler for pushing new notices to public XMPP subscribers. - * @fixme correct this exception handling */ class PublicQueueHandler extends QueueHandler { @@ -33,15 +32,14 @@ class PublicQueueHandler extends QueueHandler return 'public'; } - function handle_notice($notice) + function handle($notice) { require_once(INSTALLDIR.'/lib/jabber.php'); try { return jabber_public_notice($notice); } catch (XMPPHP_Exception $e) { - $this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage()); - die($e->getMessage()); + common_log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage()); + return false; } - return true; } }