diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index dc5eaa235..017947689 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -1010,6 +1010,7 @@ var LoginDialog = new Lang.Class({ this._timedLoginIdleTimeOutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _TIMED_LOGIN_IDLE_THRESHOLD, () => { this._timedLoginAnimationTime -= _TIMED_LOGIN_IDLE_THRESHOLD; + this._timedLoginIdleTimeOutId = 0; hold.release(); return GLib.SOURCE_REMOVE; }); @@ -1024,6 +1025,12 @@ var LoginDialog = new Lang.Class({ this._timedLoginBatch = null; } + // Reset previous idle-timeout + if (this._timedLoginIdleTimeOutId) { + GLib.source_remove(this._timedLoginIdleTimeOutId); + this._timedLoginIdleTimeOutId = 0; + } + this._timedLoginItem = null; this._timedLoginDelay = delay; this._timedLoginAnimationTime = delay;