Skip to content

Commit

Permalink
Fix shared hostname leading to removed alias bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JSmith-Aura committed May 22, 2022
1 parent c133af0 commit 8346165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/server/clients/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ func Remove(uniqueId string) {
if currentAliases, ok := uniqueIdToAllAliases[uniqueId]; ok {

for _, alias := range currentAliases {
delete(aliases[alias], uniqueId)

if len(aliases[alias]) <= 1 {
Autocomplete.Remove(alias)
delete(aliases, alias)
}

delete(aliases[alias], uniqueId)
}
delete(uniqueIdToAllAliases, uniqueId)
}
Expand Down

0 comments on commit 8346165

Please sign in to comment.