]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - extlib/XMPPHP/XMLStream.php
add inboxed and regenerate data objects
[quix0rs-gnu-social.git] / extlib / XMPPHP / XMLStream.php
index b27811407913a8379128428e6658c40d751cc762..04877fda4c8636672f1e91d5e8669f7f7e010dc0 100644 (file)
@@ -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;
        }
        
        /**