This commit is contained in:
Darien Raymond
2017-05-03 11:33:42 +02:00
parent 5b15d9aa92
commit 976395b4d6
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -41,7 +41,9 @@ func (server *Server) handleConnection(conn *net.UDPConn) {
}
response := server.MsgProcessor(buffer[:nBytes])
conn.WriteToUDP(response, addr)
if _, err := conn.WriteToUDP(response, addr); err != nil {
fmt.Println("Failed to write to UDP: ", err.Error())
}
}
}