Don't barf on io loop if xmpp connection failed

This commit is contained in:
Brion Vibber 2010-01-13 23:38:51 -08:00
parent 16742d0fde
commit 8a7171fde6

View 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();
}
}
/**