mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
endSessionDialog: Fix a warning
If _timerId is undefined/null, as it is by default, we will take this path, and fail when trying to remove a source ID for undefined. https://bugzilla.gnome.org/show_bug.cgi?id=706612
This commit is contained in:
parent
ce768241da
commit
77dc587686
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ const EndSessionDialog = new Lang.Class({
|
|||
},
|
||||
|
||||
_stopTimer: function() {
|
||||
if (this._timerId != 0) {
|
||||
if (this._timerId > 0) {
|
||||
Mainloop.source_remove(this._timerId);
|
||||
this._timerId = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue