Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb committed Feb 10, 2025
1 parent 28c009c commit 52f626c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/singleton/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ func (c *ServerClass) Update(s *model.Server, uuid string) {

func (c *ServerClass) Delete(idList []uint64) {
c.listMu.Lock()
defer c.listMu.Unlock()

for _, id := range idList {
serverUUID := c.list[id].UUID
delete(c.uuidToID, serverUUID)
delete(c.list, id)
}

c.listMu.Unlock()

c.sortList()
}

Expand Down

0 comments on commit 52f626c

Please sign in to comment.