|
|
@ -87,14 +87,14 @@ bittorrent::~bittorrent() { |
|
|
|
saveSessionState(); |
|
|
|
saveSessionState(); |
|
|
|
saveFastResumeData(); |
|
|
|
saveFastResumeData(); |
|
|
|
// Set Session settings
|
|
|
|
// Set Session settings
|
|
|
|
/*session_settings ss;
|
|
|
|
session_settings ss; |
|
|
|
ss.tracker_receive_timeout = 1; |
|
|
|
ss.tracker_receive_timeout = 1; |
|
|
|
ss.stop_tracker_timeout = 1; |
|
|
|
ss.stop_tracker_timeout = 1; |
|
|
|
ss.tracker_completion_timeout = 1; |
|
|
|
ss.tracker_completion_timeout = 1; |
|
|
|
ss.piece_timeout = 1; |
|
|
|
ss.piece_timeout = 1; |
|
|
|
ss.peer_timeout = 1; |
|
|
|
ss.peer_timeout = 1; |
|
|
|
ss.urlseed_timeout = 1; |
|
|
|
ss.urlseed_timeout = 1; |
|
|
|
s->set_settings(ss);*/ |
|
|
|
s->set_settings(ss); |
|
|
|
// Disable directory scanning
|
|
|
|
// Disable directory scanning
|
|
|
|
disableDirectoryScanning(); |
|
|
|
disableDirectoryScanning(); |
|
|
|
// Delete our objects
|
|
|
|
// Delete our objects
|
|
|
@ -104,6 +104,10 @@ bittorrent::~bittorrent() { |
|
|
|
if(filterParser) |
|
|
|
if(filterParser) |
|
|
|
delete filterParser; |
|
|
|
delete filterParser; |
|
|
|
delete downloader; |
|
|
|
delete downloader; |
|
|
|
|
|
|
|
if(FSWatcher) { |
|
|
|
|
|
|
|
delete FSWatcher; |
|
|
|
|
|
|
|
delete FSMutex; |
|
|
|
|
|
|
|
} |
|
|
|
// Delete BT session
|
|
|
|
// Delete BT session
|
|
|
|
qDebug("Deleting session"); |
|
|
|
qDebug("Deleting session"); |
|
|
|
delete s; |
|
|
|
delete s; |
|
|
|