From 993363d309f69a0d5cd44fa22f285436a287e4d3 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Wed, 31 Jul 2013 22:17:06 +0200 Subject: [PATCH] Use UUIDs for jsonrpc requestes --- js/services/rpc/sockcall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/services/rpc/sockcall.js b/js/services/rpc/sockcall.js index 3d2f9b1..43cbeb4 100644 --- a/js/services/rpc/sockcall.js +++ b/js/services/rpc/sockcall.js @@ -63,7 +63,7 @@ function(_, JSON, name, utils, alerts) { invoke: function(opts) { var data = { jsonrpc: 2.0, - id: name + '_' + utils.randStr(), + id: utils.uuid(), method: opts.name, params: opts.params && opts.params.length ? opts.params : undefined };