Skip to content

Commit

Permalink
Also check the starting state of an app when restoring session
Browse files Browse the repository at this point in the history
  • Loading branch information
nlpsuge committed Mar 2, 2022
1 parent cf11734 commit 818af8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restoreSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ var RestoreSession = class {
const running_apps = this._defaultAppSystem.get_running();
for (const running_app of running_apps) {
if (running_app.get_id() === app.get_id() &&
running_app.get_state() === Shell.AppState.RUNNING) {
running_app.get_state() >= Shell.AppState.STARTING) {
return true;
}
}
Expand Down Expand Up @@ -219,4 +219,4 @@ var RestoreSession = class {

}

}
}

0 comments on commit 818af8a

Please sign in to comment.