summaryrefslogtreecommitdiffstats
path: root/deluge/tests/test_torrent.py
diff options
context:
space:
mode:
authorbendikro <bendikro@gmail.com>2013-10-03 21:06:17 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2013-11-21 10:48:55 +0000
commitfeaeee0379ee00af756028a49a957c6603b50023 (patch)
tree48eae87d1c188d6ee71d0ad1e93c11836f5dca56 /deluge/tests/test_torrent.py
parentde3740fa70d54e07cb934cf2ba10940b6941e61a (diff)
downloaddeluge-feaeee0379ee00af756028a49a957c6603b50023.tar.gz
deluge-feaeee0379ee00af756028a49a957c6603b50023.tar.bz2
deluge-feaeee0379ee00af756028a49a957c6603b50023.zip
Removed LoopingCall from torrent.py
Having a LoopingCall for each torrent is expencive with a lot of torrents. The LoopingCall in torrent.py has been moved to torrentmanager.py which runs through all the torrents and calls cleanup_prev_status.
Diffstat (limited to 'deluge/tests/test_torrent.py')
-rw-r--r--deluge/tests/test_torrent.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py
index 469f32106..1823bd3d7 100644
--- a/deluge/tests/test_torrent.py
+++ b/deluge/tests/test_torrent.py
@@ -51,9 +51,6 @@ class TorrentTestCase(unittest.TestCase):
return component.start()
def tearDown(self):
- if self.torrent:
- self.torrent.prev_status_cleanup_loop.stop()
-
deluge.core.torrent.component = self.original_component
def on_shutdown(result):