remove duplicate logging

This commit is contained in:
Sebastian Mark 2024-11-20 20:31:24 +01:00
parent ed6902def0
commit 16736c9410

View file

@ -31,8 +31,6 @@ func SendPermanentBroadCastMessage() {
if time.Now().Sub(client.LastPong) > (10 * time.Second) {
// Remove unresponsive client
client.Conn.Close()
delete(Clients, client.Conn.LocalAddr())
helper.Logger.Info("Client timed out", "lastPong", client.LastPong, "host", client.RealIP, "clients", len(Clients))
}
}
<-tick.C