graceful shutdown of uTP sockets
This commit is contained in:
@@ -2902,7 +2902,16 @@ namespace aux {
|
||||
#if defined TORRENT_VERBOSE_LOGGING
|
||||
// (*m_logger) << time_now_string() << " session_impl::on_tick\n";
|
||||
#endif
|
||||
if (m_abort) return;
|
||||
|
||||
// we have to keep ticking the utp socket manager
|
||||
// until they're all closed
|
||||
if (m_abort && m_utp_socket_manager.num_sockets() == 0)
|
||||
{
|
||||
#if defined TORRENT_ASIO_DEBUGGING
|
||||
fprintf(stderr, "uTP sockets left: %d\n", m_utp_socket_manager.num_sockets());
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
if (e == asio::error::operation_aborted) return;
|
||||
|
||||
|
Reference in New Issue
Block a user