diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-11 12:34:10 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-11 12:34:10 +0000 |
commit | fccdb76b5140f0764a5e6ad035e67519b5ee6f6a (patch) | |
tree | a516acfcc216f49f5bdefe6fed0173a10069917a /src/trg-main-window.c | |
parent | be569c0953fcd777ae00ae41feb9c673e4df2f23 (diff) |
queue position setting
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r-- | src/trg-main-window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c index 972ba2d..0fee170 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -1050,6 +1050,8 @@ void on_generic_interactive_action(JsonObject * response, int status, if (status == CURLE_OK) { gint64 id; + gint updateStatus; + JsonObject *updateResponse; if (json_object_has_member(response, PARAM_TAG)) id = json_object_get_int_member(response, PARAM_TAG); else if (trg_client_get_activeonlyupdate(tc)) @@ -1057,8 +1059,8 @@ void on_generic_interactive_action(JsonObject * response, int status, else id = -1; - dispatch_async(priv->client, torrent_get(id), - on_torrent_get_interactive, data); + updateResponse = dispatch(tc, torrent_get(id), &updateStatus); + on_torrent_get_interactive(updateResponse, updateStatus, data); } } |