]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Don't show multiple 'maximum retries exceeded' dialogs.
authorChris Porter <redacted>
Sun, 21 Jun 2009 23:45:03 +0000 (00:45 +0100)
committerChris Porter <redacted>
Sun, 21 Jun 2009 23:45:03 +0000 (00:45 +0100)
js/irc/ircconnection.js

index a578701e4ca0172080336ef962b1e3983a92dbed..e85fd58fb9018baba3f7ea5ad276ddaa60e536e0 100644 (file)
@@ -28,8 +28,6 @@ qwebirc.irc.IRCConnection = new Class({
     this.__timeoutId = null;
     this.__lastActiveRequest = null;
     this.__activeRequest = null;
-    
-    this.haha = 0
   },
   __error: function(text) {
     this.fireEvent("error", text);
@@ -147,7 +145,7 @@ qwebirc.irc.IRCConnection = new Class({
   },
   __checkRetries: function() {
     /* hmm, something went wrong! */
-    if(this.__retryAttempts++ >= this.options.maxRetries) {
+    if(this.__retryAttempts++ >= this.options.maxRetries && !this.disconnected) {
       this.disconnect();
       
       this.__error("Error: connection closed after several requests failed.");