From: Alexander Ebert Date: Wed, 3 Apr 2013 00:22:09 +0000 (+0200) Subject: Suppressing errors if keep alive was not possible X-Git-Tag: 2.0.0_Beta_1~400^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b1326f4cf6fcf3b3d3aa405895917979cefb759;p=GitHub%2FWoltLab%2FWCF.git Suppressing errors if keep alive was not possible --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index a627f2e8f0..24291da256 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1489,7 +1489,7 @@ WCF.Action.Proxy = Class.extend({ this.confirmationDialog = null; this.loading = null; this._showLoadingOverlayOnce = false; - this._suppressErrors = (this.options === true); + this._suppressErrors = (this.options.suppressErrors === true); // send request immediately after initialization if (this.options.autoSend) { @@ -5506,13 +5506,14 @@ WCF.System.KeepAlive = Class.extend({ * @param integer seconds */ init: function(seconds) { - new WCF.PeriodicalExecuter(function() { + new WCF.PeriodicalExecuter(function(pe) { new WCF.Action.Proxy({ autoSend: true, data: { actionName: 'keepAlive', className: 'wcf\\data\\session\\SessionAction' }, + failure: function() { pe.stop(); }, showLoadingOverlay: false, suppressErrors: true });