Skip to content

Commit

Permalink
fix: segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Adis Durakovic committed Mar 24, 2024
1 parent 46843ff commit 24d4e40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ func runHub() {
}

case connection := <-unregister:

addr := connection.RemoteAddr().String()
delete(clients, connection)
log.Debug(
"connection unregistered",
"addr",
connection.RemoteAddr().String(),
addr,
"clients",
len(clients),
)
Expand Down

0 comments on commit 24d4e40

Please sign in to comment.