Skip to content

Commit

Permalink
fix: fixing state transition
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Aug 28, 2023
1 parent 1513500 commit b62f7a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/appState.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const appStateFactory = (function(){
return true;
},
async next() {
if (currentState === states.APP_STARTED && this.transitionActions()) {
if (currentState === states.APP_STARTED && await this.transitionActions()) {
currentState = states.FRONTEND_STARTED;
return true;
}
Expand All @@ -64,7 +64,7 @@ const appStateFactory = (function(){
return false;
},
async next() {
if (currentState === states.FRONTEND_STARTED && this.transitionActions()) {
if (currentState === states.FRONTEND_STARTED && await this.transitionActions()) {
currentState = states.DEPENDENCIES_FOUND;
return true;
}
Expand Down Expand Up @@ -112,7 +112,7 @@ const appStateFactory = (function(){
return false;
},
async next() {
if (currentState === states.SERVER_STARTED && this.transitionActions()) {
if (currentState === states.SERVER_STARTED && await this.transitionActions()) {
currentState = states.SERVER_STOPPED;
return true;
}
Expand All @@ -128,7 +128,7 @@ const appStateFactory = (function(){
return false;
},
async next() {
if (currentState === states.SERVER_STOPPED && this.transitionActions()) {
if (currentState === states.SERVER_STOPPED && await this.transitionActions()) {
currentState = states.SERVER_STARTED;
return true;
}
Expand Down

0 comments on commit b62f7a3

Please sign in to comment.