From eafc2d6e33993df07616541ef032c2ee48d1c8d7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 29 Sep 2008 16:55:04 -0400 Subject: [PATCH] guarded call to conn method in xmppqueuehandler darcs-hash:20080929205504-5ed1f-fa0ddfe8e78b854eb99e5ab92060320a1d399a2a.gz --- lib/xmppqueuehandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); -- 2.39.5