check the state of the queue before diving in to process it
darcs-hash:20080830095709-84dde-a64262c1b32e506cb2c43f8b4fb55ab88effc22f.gz
This commit is contained in:
@@ -616,4 +616,12 @@ class XMPPHP_XMLStream {
|
||||
xml_set_element_handler($this->parser, 'startXML', 'endXML');
|
||||
xml_set_character_data_handler($this->parser, 'charXML');
|
||||
}
|
||||
|
||||
public function readyToProcess() {
|
||||
$read = array($this->socket);
|
||||
$write = null;
|
||||
$except = null;
|
||||
$updated = @stream_select($read, $write, $except, 0);
|
||||
return $updated !== false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user