]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't barf on io loop if xmpp connection failed
authorBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 07:38:51 +0000 (23:38 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 07:38:51 +0000 (23:38 -0800)
lib/xmppmanager.php

index 0839cda57aefb2eea18c9f0c2f5c52aebb279bc9..dfff63a30c31aa88ea6a9df7b1759baa2d145ab3 100644 (file)
@@ -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();
+        }
     }
 
     /**