mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 21:14:33 +00:00
Tagged rc9 release
This commit is contained in:
parent
0d90ad8f7c
commit
31679f0d6d
@ -72,6 +72,15 @@ bittorrent::bittorrent() : timerScan(0), DHTEnabled(false), preAllocateAll(false
|
||||
|
||||
// Main destructor
|
||||
bittorrent::~bittorrent() {
|
||||
// Set Session settings
|
||||
session_settings ss;
|
||||
ss.tracker_receive_timeout = 1;
|
||||
ss.stop_tracker_timeout = 1;
|
||||
ss.tracker_completion_timeout = 1;
|
||||
ss.piece_timeout = 1;
|
||||
ss.peer_timeout = 1;
|
||||
ss.urlseed_timeout = 1;
|
||||
s->set_settings(ss);
|
||||
// Disable directory scanning
|
||||
disableDirectoryScanning();
|
||||
// Delete our objects
|
||||
@ -81,7 +90,9 @@ bittorrent::~bittorrent() {
|
||||
delete ETARefresher;
|
||||
delete downloader;
|
||||
// Delete BT session
|
||||
qDebug("Deleting session");
|
||||
delete s;
|
||||
qDebug("Session deleted");
|
||||
}
|
||||
|
||||
void bittorrent::preAllocateAllFiles(bool b) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user