Skip to content

Commit 8eb686a

Browse files
committed
fix repeat login
1 parent de907ae commit 8eb686a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/gmc/handler/bot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func CreateBot(c *gin.Context) {
6666
_, ok := bot.Clients.Load(req.BotId)
6767
if ok {
6868
c.String(http.StatusInternalServerError, "botId already exists")
69+
return
6970
}
7071
go func() {
7172
CreateBotImpl(req.BotId, req.Password, req.DeviceSeed)

0 commit comments

Comments
 (0)