close connection more often
Some checks failed
Build and Publish / BuildAndDeployAmd64 (push) Failing after 28s
Build and Publish / BuildAndDeploy (push) Successful in 2m9s

This commit is contained in:
matst80
2024-11-12 16:02:58 +01:00
parent 547a82832a
commit f4698acfd5
3 changed files with 27 additions and 5 deletions

View File

@@ -118,6 +118,7 @@ func (m *TCPServerMux) HandleConnection(connection net.Conn) error {
data, err := GetPacketData(reader, packet.DataLength)
if err != nil {
log.Printf("Error receiving packet data: %v\n", err)
return err
}
go m.HandleData(connection, packet.MessageType, data)
}