mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
Try to fix issue where adding a lot of torrents at once crashes the
daemon.
This commit is contained in:
parent
0b590bfcda
commit
e1ceb07567
1 changed files with 3 additions and 0 deletions
|
@ -352,6 +352,9 @@ class Core(
|
||||||
"""Adds a torrent file to the libtorrent session
|
"""Adds a torrent file to the libtorrent session
|
||||||
This requires the torrents filename and a dump of it's content
|
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
|
# Turn the filedump into a torrent_info
|
||||||
if not isinstance(filedump, str):
|
if not isinstance(filedump, str):
|
||||||
filedump = filedump.data
|
filedump = filedump.data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue