mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 07:32:32 +00:00
* Properly close tracker requests when closing a download.
* When sending stopped state to a tracker, use 5 second timeout. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@525 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+6
-3
@@ -88,11 +88,14 @@ Control::cleanup() {
|
||||
// but if it isn't, use a delay task.
|
||||
void
|
||||
Control::receive_shutdown() {
|
||||
if (!m_shutdownReceived)
|
||||
if (!m_shutdownReceived) {
|
||||
torrent::listen_close();
|
||||
|
||||
m_core.shutdown(m_shutdownReceived);
|
||||
m_shutdownReceived = true;
|
||||
m_core.shutdown(false);
|
||||
m_shutdownReceived = true;
|
||||
} else {
|
||||
m_core.shutdown(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user