diff --git a/packet_resend_manager.go b/packet_resend_manager.go index d47fe45e..47b7028c 100644 --- a/packet_resend_manager.go +++ b/packet_resend_manager.go @@ -23,7 +23,6 @@ func (p *PendingPacket) BeginTimeoutTimer() { for { select { case <-p.quit: - //fmt.Println("Stopped") return case <-p.ticker.C: client := p.packet.Sender() diff --git a/server.go b/server.go index a84f96b5..3d3e138e 100644 --- a/server.go +++ b/server.go @@ -55,7 +55,6 @@ type Server struct { natTraversalProtocolVersion *NEXVersion emuSendPacketDropPercent int emuRecvPacketDropPercent int - port int } // Listen starts a NEX server on a given address @@ -67,9 +66,6 @@ func (server *Server) Listen(address string) { panic(err) } - // * For debugging the resend manager - server.port = udpAddress.Port - socket, err := net.ListenUDP(protocol, udpAddress) if err != nil { panic(err) @@ -890,7 +886,7 @@ func (server *Server) SetResendTimeout(resendTimeout time.Duration) { server.resendTimeout = resendTimeout } -// SetResendTimeoutIncrement sets how much to increment the resendTimeout every time a packet is resent to the client +// SetResendTimeoutIncrement sets how much to increment the resendTimeout every time a packet is resent to the client func (server *Server) SetResendTimeoutIncrement(resendTimeoutIncrement time.Duration) { server.resendTimeoutIncrement = resendTimeoutIncrement }