Skip to content

Commit

Permalink
Removed unused debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow committed Sep 26, 2023
1 parent 8566ab2 commit 38a6143
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion packet_resend_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 1 addition & 5 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ type Server struct {
natTraversalProtocolVersion *NEXVersion
emuSendPacketDropPercent int
emuRecvPacketDropPercent int
port int
}

// Listen starts a NEX server on a given address
Expand All @@ -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)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 38a6143

Please sign in to comment.