[Core] Modify #1869 fix to only apply to lt <= 0.15

A fix was implemented in 0.16: https://code.google.com/p/libtorrent/issues/detail?id=406#c39
This commit is contained in:
Calum Lind 2014-11-18 11:12:58 +00:00
parent cc56764ee9
commit 75dca80ac4

View file

@ -100,7 +100,7 @@ class Core(component.Component):
# Set session settings
self.settings.send_redundant_have = True
if deluge.common.windows_check():
if deluge.common.windows_check() and lt.version_major == 0 and lt.version_minor <= 15:
self.settings.disk_io_write_mode = \
lt.io_buffer_mode_t.disable_os_cache
self.settings.disk_io_read_mode = \