Browse Source

Tagged rc9 release

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
31679f0d6d
  1. 11
      src/bittorrent.cpp

11
src/bittorrent.cpp

@ -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…
Cancel
Save