From 8a7171fde610246e5820ee04441955bd8dd463bf Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 13 Jan 2010 23:38:51 -0800 Subject: [PATCH] Don't barf on io loop if xmpp connection failed --- lib/xmppmanager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/xmppmanager.php b/lib/xmppmanager.php index 0839cda57a..dfff63a30c 100644 --- a/lib/xmppmanager.php +++ b/lib/xmppmanager.php @@ -118,7 +118,11 @@ class XmppManager extends IoManager */ public function getSockets() { - return array($this->conn->getSocket()); + if ($this->conn) { + return array($this->conn->getSocket()); + } else { + return array(); + } } /** -- 2.39.5