Don't barf on io loop if xmpp connection failed
This commit is contained in:
parent
16742d0fde
commit
8a7171fde6
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user