summaryrefslogtreecommitdiffstats
path: root/deluge/core/core.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2017-06-08 10:05:11 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2017-06-08 11:12:07 +0100
commit85a1e478fe34df3255d201bc11719a2ec19d1a3a (patch)
tree941b2c40b7a6f2ff7a783963d07f5f57f37488e5 /deluge/core/core.py
parent29191e6a58ca8aaee4c299cfdfe5f9138544527c (diff)
downloaddeluge-85a1e478fe34df3255d201bc11719a2ec19d1a3a.tar.gz
deluge-85a1e478fe34df3255d201bc11719a2ec19d1a3a.tar.bz2
deluge-85a1e478fe34df3255d201bc11719a2ec19d1a3a.zip
[#3044|Core] Stop libtorrent checking file timestamps in resume data
* The verfication of timestamps of files on disc against those in resume data can be buggy and sends torrents to error state for no apparent reason. It has also been removed in latest version of libtorrent so disabling this check.
Diffstat (limited to 'deluge/core/core.py')
-rw-r--r--deluge/core/core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/deluge/core/core.py b/deluge/core/core.py
index d5c571615..f495249b5 100644
--- a/deluge/core/core.py
+++ b/deluge/core/core.py
@@ -113,7 +113,9 @@ class Core(component.Component):
# Start the libtorrent session.
log.debug('Starting session (fingerprint: %s, user_agent: %s)', deluge_fingerprint, user_agent)
- settings_pack = {'peer_fingerprint': deluge_fingerprint, 'user_agent': user_agent}
+ settings_pack = {'peer_fingerprint': deluge_fingerprint,
+ 'user_agent': user_agent,
+ 'ignore_resume_timestamps': True}
self.session = lt.session(settings_pack, flags=0)
# Load the settings, if available.