unseless for loop
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m44s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m44s
This commit is contained in:
@@ -44,11 +44,11 @@ func (h *GrainHandler) Serve() {
|
||||
|
||||
func (h *GrainHandler) handleClient(conn net.Conn) {
|
||||
var err error
|
||||
fmt.Println("Handling client connection")
|
||||
|
||||
defer conn.Close()
|
||||
|
||||
var packet CartPacket
|
||||
for {
|
||||
|
||||
for {
|
||||
err = binary.Read(conn, binary.LittleEndian, &packet)
|
||||
if err != nil {
|
||||
@@ -87,4 +87,3 @@ func (h *GrainHandler) handleClient(conn net.Conn) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user