summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-01-13 23:38:51 -0800
committerBrion Vibber <brion@pobox.com>2010-01-13 23:38:51 -0800
commit8a7171fde610246e5820ee04441955bd8dd463bf (patch)
treeb2db169ab0963978916b0fad320843c6c573ee96
parent16742d0fde811256c386d1bae9768fcd939b9af8 (diff)
Don't barf on io loop if xmpp connection failed
-rw-r--r--lib/xmppmanager.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/xmppmanager.php b/lib/xmppmanager.php
index 0839cda57..dfff63a30 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();
+ }
}
/**