From 1aac0166b9e528bc9aaeac5f3befc4cf87abff0a Mon Sep 17 00:00:00 2001 From: hamza zia Date: Sat, 11 Jul 2015 10:59:31 +0500 Subject: [PATCH] send rpc syscalls in the order in which they were created --- js/services/rpc/rpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/services/rpc/rpc.js b/js/services/rpc/rpc.js index d234c7f..44719ac 100644 --- a/js/services/rpc/rpc.js +++ b/js/services/rpc/rpc.js @@ -173,7 +173,7 @@ function(syscall, time, alerts, utils, rootScope, uri, authconf) { // get currently configured directURL getDirectURL : function() { return currentConf.directURL }, - + // syscall is done only once, delay is optional // and pass true to only dispatch it in the global timeout // which can be used to batch up once calls @@ -181,7 +181,7 @@ function(syscall, time, alerts, utils, rootScope, uri, authconf) { cb = cb || angular.noop; params = params || []; - subscriptions.unshift({ + subscriptions.push({ once: true, name: 'aria2.' + name, params: params,