resume data unit test and fix

This commit is contained in:
Arvid Norberg
2008-02-25 05:07:29 +00:00
parent 9f44c577d7
commit c1c2fb4409
4 changed files with 77 additions and 4 deletions

View File

@@ -1826,7 +1826,6 @@ namespace detail
{
tracker_request req = t.generate_tracker_request();
TORRENT_ASSERT(req.event == tracker_request::stopped);
TORRENT_ASSERT(!m_listen_sockets.empty());
req.listen_port = 0;
if (!m_listen_sockets.empty())
req.listen_port = m_listen_sockets.front().external_port;