asio handlers are now properly cancelled when destructing the session object, race conditions are avoided by waiting for the io service to complete all tasks
This commit is contained in:
@@ -86,6 +86,11 @@ namespace libtorrent
|
||||
try_connect();
|
||||
}
|
||||
|
||||
void connection_queue::close()
|
||||
{
|
||||
m_timer.cancel();
|
||||
}
|
||||
|
||||
void connection_queue::limit(int limit)
|
||||
{ m_half_open_limit = limit; }
|
||||
|
||||
|
Reference in New Issue
Block a user