X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fxmppqueuehandler.php;h=cfc9642e4c159a602a00dda22edfdaab2fa7befd;hb=67340ce11c773287a4807ddc4567add775a3fcd7;hp=8e0db6f31e887add2597ad51ddf52d87a366c5b7;hpb=ed57778b92e03d1e1dc922273eb07bd929398cbd;p=quix0rs-gnu-social.git diff --git a/lib/xmppqueuehandler.php b/lib/xmppqueuehandler.php index 8e0db6f31e..cfc9642e4c 100644 --- a/lib/xmppqueuehandler.php +++ b/lib/xmppqueuehandler.php @@ -51,7 +51,9 @@ class XmppQueueHandler extends QueueHandler { function idle($timeout=0) { # Process the queue for as long as needed try { - $this->conn->processTime($timeout); + if ($this->conn) { + $this->conn->processTime($timeout); + } } catch (XMPPHP_Exception $e) { $this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage()); die($e->getMessage());