mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 19:57:45 +03:00
Tagged rc9 release
This commit is contained in:
parent
0d90ad8f7c
commit
31679f0d6d
1 changed files with 11 additions and 0 deletions
|
@ -72,6 +72,15 @@ bittorrent::bittorrent() : timerScan(0), DHTEnabled(false), preAllocateAll(false
|
||||||
|
|
||||||
// Main destructor
|
// Main destructor
|
||||||
bittorrent::~bittorrent() {
|
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
|
// Disable directory scanning
|
||||||
disableDirectoryScanning();
|
disableDirectoryScanning();
|
||||||
// Delete our objects
|
// Delete our objects
|
||||||
|
@ -81,7 +90,9 @@ bittorrent::~bittorrent() {
|
||||||
delete ETARefresher;
|
delete ETARefresher;
|
||||||
delete downloader;
|
delete downloader;
|
||||||
// Delete BT session
|
// Delete BT session
|
||||||
|
qDebug("Deleting session");
|
||||||
delete s;
|
delete s;
|
||||||
|
qDebug("Session deleted");
|
||||||
}
|
}
|
||||||
|
|
||||||
void bittorrent::preAllocateAllFiles(bool b) {
|
void bittorrent::preAllocateAllFiles(bool b) {
|
||||||
|
|
Loading…
Reference in a new issue