From c9a4c2bf41f8a8e921844dd9c7e0c0f917dcbefc Mon Sep 17 00:00:00 2001 From: Fabio1988 Date: Thu, 5 Oct 2023 10:33:34 +0200 Subject: [PATCH] release account on switch_account --- routes/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/controller.go b/routes/controller.go index f91aee7..d011d06 100644 --- a/routes/controller.go +++ b/routes/controller.go @@ -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(),