variable name conflict on reconnect

darcs-hash:20080902172039-84dde-2b1bbac407959af2a5ca0c764aa503f0cb05c785.gz
This commit is contained in:
Evan Prodromou
2008-09-02 13:20:39 -04:00
parent 65e462858e
commit 307b9527e6
5 changed files with 8 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ class XMPPHP_XMLStream {
/**
* @var integer
*/
protected $reconnect = 30;
protected $reconnectTimeout = 30;
/**
* Constructor
@@ -296,14 +296,14 @@ class XMPPHP_XMLStream {
*/
public function doReconnect() {
if(!$this->is_server) {
$this->log->log("Reconnecting ($this->reconnect)...", XMPPHP_Log::LEVEL_WARNING);
$this->connect($this->reconnect, false, false);
$this->log->log("Reconnecting ($this->reconnectTimeout)...", XMPPHP_Log::LEVEL_WARNING);
$this->connect($this->reconnectTimeout, false, false);
$this->reset();
$this->event('reconnect');
}
}
public function reconnectTimeout($timeout) {
public function setReconnectTimeout($timeout) {
$this->reconnect = $timeout;
}