Skip to content

Commit

Permalink
Kelp GUI: allow bots to be deleted when in Initializing state closes s…
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsaraf committed Mar 2, 2020
1 parent df4cb9e commit 1491b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/backend/delete_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *APIServer) deleteBot(w http.ResponseWriter, r *http.Request) {
}
log.Printf("deleteBot for loop, current botState: %s\n", botState)

if botState == kelpos.BotStateStopped {
if botState == kelpos.BotStateStopped || botState == kelpos.BotStateInitializing {
break
}

Expand Down

0 comments on commit 1491b61

Please sign in to comment.