remove duplicate logging

This commit is contained in:
Sebastian Mark 2024-11-20 20:31:24 +01:00
parent ed6902def0
commit 62b6ab81a5
2 changed files with 1 additions and 2 deletions

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

View file

@ -5,6 +5,7 @@ import (
"net"
"net/http"
"sync"
"time"
"git.smsvc.net/pomodoro/GoTomato/internal/helper"
"git.smsvc.net/pomodoro/GoTomato/pkg/models"