Skip to content

Commit

Permalink
Do not restore error state
Browse files Browse the repository at this point in the history
  • Loading branch information
PreyMa committed Sep 23, 2023
1 parent 083de0f commit 930e72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wubot.js
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,8 @@
this.buttonModeField.value= settings.buttonMode().name;
this.registrationMap= settings.registrationsMap();

// The starting state cannot be restored
if( settings.state() === State.Starting ) {
// The starting state and error state cannot be restored
if( settings.state() === State.Starting || settings.state() === State.Error ) {
settings.setState(State.Ready);
}

Expand Down

0 comments on commit 930e72b

Please sign in to comment.