fix shutdown hang issue in connection queue

This commit is contained in:
Arvid Norberg 2012-07-14 20:37:31 +00:00
parent 450a9f69ef
commit 2a08bb5feb
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
* fix uTP edge case where udp socket buffer fills up
* fix nagle implementation in uTP
* fix race condition causing shutdown hang
0.16.2 release
* fix permissions issue on linux whith noatime enabled for non-owned files

View File

@ -277,7 +277,8 @@ namespace libtorrent
#endif
TORRENT_ASSERT(!e || e == error::operation_aborted);
if (e) return;
if (e && m_num_connecting == 0)
return;
ptime next_expire = max_time();
ptime now = time_now_hires() + milliseconds(100);