diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-30 13:14:41 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-30 13:14:41 -0400 |
commit | e4d42b2355690c09550a478d5c4106390ddc91b0 (patch) | |
tree | 6a22f6b978a8cd5dfc3e4a89131e5286cdf1f951 /extlib/XMPPHP | |
parent | 0217a74f130ee8075537a4f1316f554c25d51fe2 (diff) |
better check for ready state on connection
darcs-hash:20080830171441-84dde-bb5373c4af2ae223d7b4b150f5a76404247a7570.gz
Diffstat (limited to 'extlib/XMPPHP')
-rw-r--r-- | extlib/XMPPHP/XMLStream.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php index 62aa4de89..119016768 100644 --- a/extlib/XMPPHP/XMLStream.php +++ b/extlib/XMPPHP/XMLStream.php @@ -619,9 +619,9 @@ class XMPPHP_XMLStream { public function readyToProcess() { $read = array($this->socket); - $write = null; - $except = null; + $write = array(); + $except = array(); $updated = @stream_select($read, $write, $except, 0); - return $updated !== false; + return (($updated !== false) && ($updated > 0)); } } |