Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
release account on switch_account
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 committed Oct 5, 2023
1 parent 25e6522 commit c9a4c2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func handleGetJob(c *gin.Context, req ControllerBody, workerState *worker.State)
}
log.Debugf("[CONTROLLER] [%s] Account '%s' %s. Switch Account.", req.Uuid, req.Username, message)
workerState.ResetUsername()
accountManager.ReleaseAccount(req.Username)
workerState.ResetCounter()
respondWithData(c, &map[string]any{
"action": SwitchAccount.String(),
Expand Down

0 comments on commit c9a4c2b

Please sign in to comment.