summaryrefslogtreecommitdiff
path: root/extlib/XMPPHP
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-30 13:14:41 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-30 13:14:41 -0400
commite4d42b2355690c09550a478d5c4106390ddc91b0 (patch)
tree6a22f6b978a8cd5dfc3e4a89131e5286cdf1f951 /extlib/XMPPHP
parent0217a74f130ee8075537a4f1316f554c25d51fe2 (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.php6
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));
}
}