summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-29 16:55:04 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-29 16:55:04 -0400
commiteafc2d6e33993df07616541ef032c2ee48d1c8d7 (patch)
treef66907434aa38f6bd8d5c8c61ec25463e9ad5ec6
parent70f88444316be50c6b4f0195820af38426275f2b (diff)
guarded call to conn method in xmppqueuehandler
darcs-hash:20080929205504-5ed1f-fa0ddfe8e78b854eb99e5ab92060320a1d399a2a.gz
-rw-r--r--lib/xmppqueuehandler.php4
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());