X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=extlib%2FXMPPHP%2FXMLStream.php;h=04877fda4c8636672f1e91d5e8669f7f7e010dc0;hb=69a1cea319f22362d197cb8a0fc9ab19abdf8548;hp=b27811407913a8379128428e6658c40d751cc762;hpb=65e462858e957a94876b6941cc62a1b494567b2f;p=quix0rs-gnu-social.git diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php index b278114079..04877fda4c 100644 --- a/extlib/XMPPHP/XMLStream.php +++ b/extlib/XMPPHP/XMLStream.php @@ -156,7 +156,7 @@ class XMPPHP_XMLStream { /** * @var integer */ - protected $reconnect = 30; + protected $reconnectTimeout = 30; /** * Constructor @@ -296,15 +296,15 @@ 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) { - $this->reconnect = $timeout; + public function setReconnectTimeout($timeout) { + $this->reconnectTimeout = $timeout; } /**