diff options
Diffstat (limited to 'lib/xmppqueuehandler.php')
-rw-r--r-- | lib/xmppqueuehandler.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/xmppqueuehandler.php b/lib/xmppqueuehandler.php index 8e0db6f31..cfc9642e4 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()); |