Probably fixes issue with looping XMPP queue items

This commit is contained in:
Mikael Nordfeldth 2016-03-28 11:33:52 +02:00
parent f134a423f6
commit 2e327dfcd7

View File

@ -315,9 +315,13 @@ class XmppPlugin extends ImPlugin
function sendNotice($screenname, Notice $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;
}