minor uTP fix

This commit is contained in:
Arvid Norberg 2012-07-25 16:14:21 +00:00
parent 56f80c882c
commit 135a14ad75
1 changed files with 2 additions and 1 deletions

View File

@ -1096,6 +1096,7 @@ utp_socket_impl::~utp_socket_impl()
}
free(m_nagle_packet);
m_nagle_packet = NULL;
}
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
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
&& m_mtu_seq != 0)