Changeset 2083

Show
Ignore:
Timestamp:
10/29/07 01:01:48 (15 months ago)
Author:
markybob
Message:

fix hang on shutdown

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tags/deluge-0.5.6.1/libtorrent/src/session_impl.cpp

    r2078 r2083  
    684684                } 
    685685 
     686#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) 
     687                (*m_logger) << time_now_string() << " aborting all torrents\n"; 
     688#endif 
    686689                // abort all torrents 
    687690                for (torrent_map::iterator i = m_torrents.begin() 
     
    691694                } 
    692695 
     696#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) 
     697                (*m_logger) << time_now_string() << " aborting all connections\n"; 
     698#endif 
     699                // abort all connections 
     700                for (connection_map::iterator i = m_connections.begin() 
     701                        , end(m_connections.end()); i != end; ++i) 
     702                { 
     703                        i->second->disconnect(); 
     704                } 
     705                 
    693706#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) 
    694707                (*m_logger) << time_now_string() << " aborting all tracker requests\n"; 
  • trunk/libtorrent/src/session_impl.cpp

    r2071 r2083  
    684684                } 
    685685 
     686#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) 
     687                (*m_logger) << time_now_string() << " aborting all torrents\n"; 
     688#endif 
    686689                // abort all torrents 
    687690                for (torrent_map::iterator i = m_torrents.begin() 
     
    691694                } 
    692695 
     696#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) 
     697                (*m_logger) << time_now_string() << " aborting all connections\n"; 
     698#endif 
     699                // abort all connections 
     700                for (connection_map::iterator i = m_connections.begin() 
     701                        , end(m_connections.end()); i != end; ++i) 
     702                { 
     703                        i->second->disconnect(); 
     704                } 
     705                 
    693706#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) 
    694707                (*m_logger) << time_now_string() << " aborting all tracker requests\n";