]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
guarded call to conn method in xmppqueuehandler
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 29 Sep 2008 20:55:04 +0000 (16:55 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 29 Sep 2008 20:55:04 +0000 (16:55 -0400)
darcs-hash:20080929205504-5ed1f-fa0ddfe8e78b854eb99e5ab92060320a1d399a2a.gz

lib/xmppqueuehandler.php

index 8e0db6f31e887add2597ad51ddf52d87a366c5b7..cfc9642e4c159a602a00dda22edfdaab2fa7befd 100644 (file)
@@ -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());