minor uTP fix
This commit is contained in:
@@ -1096,6 +1096,7 @@ utp_socket_impl::~utp_socket_impl()
|
|||||||
}
|
}
|
||||||
|
|
||||||
free(m_nagle_packet);
|
free(m_nagle_packet);
|
||||||
|
m_nagle_packet = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool utp_socket_impl::should_delete() const
|
bool utp_socket_impl::should_delete() const
|
||||||
@@ -1914,7 +1915,7 @@ bool utp_socket_impl::resend_packet(packet* p, bool fast_resend)
|
|||||||
// for fast re-sends the packet hasn't been marked as needing resending
|
// for fast re-sends the packet hasn't been marked as needing resending
|
||||||
TORRENT_ASSERT(p->need_resend || fast_resend);
|
TORRENT_ASSERT(p->need_resend || fast_resend);
|
||||||
|
|
||||||
TORRENT_ASSERT(!m_error);
|
if (m_error) return false;
|
||||||
|
|
||||||
if (((m_acked_seq_nr + 1) & ACK_MASK) == m_mtu_seq
|
if (((m_acked_seq_nr + 1) & ACK_MASK) == m_mtu_seq
|
||||||
&& m_mtu_seq != 0)
|
&& m_mtu_seq != 0)
|
||||||
|
Reference in New Issue
Block a user