Commit 2e327dfc authored by mmn's avatar mmn

Probably fixes issue with looping XMPP queue items

parent f134a423
......@@ -315,9 +315,13 @@ class XmppPlugin extends ImPlugin
function sendNotice($screenname, Notice $notice)
$msg = $this->formatNotice($notice);
$entry = $this->format_entry($notice);
try {
$msg = $this->formatNotice($notice);
$entry = $this->format_entry($notice);
} catch (Exception $e) {
common_log(LOG_ERR, __METHOD__ . ": Discarding outgoing stanza because of exception: {$e->getMessage()}");
return false; // return value of sendNotice is never actually used as of now
$this->queuedConnection()->message($screenname, $msg, 'chat', null, $entry);
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment