From e1ceb0756736e59e8f2772a8b397d5cf1018efef Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 27 Jun 2008 05:49:27 +0000 Subject: [PATCH] Try to fix issue where adding a lot of torrents at once crashes the daemon. --- deluge/core/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index 7fff984c8..d4902e82b 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -352,6 +352,9 @@ class Core( """Adds a torrent file to the libtorrent session This requires the torrents filename and a dump of it's content """ + gobject.idle_add(self._add_torrent_file, filename, filedump, options) + + def _add_torrent_file(self, filename, filedump, options): # Turn the filedump into a torrent_info if not isinstance(filedump, str): filedump = filedump.data