From 02161ea6ef3ac42b235709c51ecd2ea0310bce3a Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 13 Oct 2008 18:36:47 +0000 Subject: [PATCH] revert back to aclient and add force_call --- deluge/ui/webui/json_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/webui/json_api.py b/deluge/ui/webui/json_api.py index 45501cbf9..829c816e6 100644 --- a/deluge/ui/webui/json_api.py +++ b/deluge/ui/webui/json_api.py @@ -268,7 +268,8 @@ class json_rpc: for torrent in torrents: filename = os.path.basename(torrent['path']) fdump = open(torrent['path'], 'r').read() - sclient.add_torrent_file_binary(filename, fdump, torrent['options']) + aclient.add_torrent_file_binary(filename, fdump, torrent['options']) + aclient.force_call() def register(): component.get("PageManager").register_page("/json/rpc",json_rpc)