From: Brion Vibber Date: Thu, 14 Jan 2010 07:38:51 +0000 (-0800) Subject: Don't barf on io loop if xmpp connection failed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a7171fde610246e5820ee04441955bd8dd463bf;p=quix0rs-gnu-social.git Don't barf on io loop if xmpp connection failed --- 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(); + } } /**