From 8cb4bc212789661d77944e5f0e2f1a85dadb78c7 Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Wed, 14 Jun 2017 12:35:36 +0200 Subject: [PATCH] Fix wrongly called timeouts --- js/src/api/subscriptions/signer.js | 2 +- js/src/api/transport/http/http.js | 4 ++-- js/src/views/Signer/store.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/src/api/subscriptions/signer.js b/js/src/api/subscriptions/signer.js index d4acce163..2215ed7f3 100644 --- a/js/src/api/subscriptions/signer.js +++ b/js/src/api/subscriptions/signer.js @@ -57,7 +57,7 @@ export default class Signer { this._updateSubscriptions('signer_requestsToConfirm', null, requests); nextTimeout(); }) - .catch(nextTimeout); + .catch(() => nextTimeout()); } _postTransaction (data) { diff --git a/js/src/api/transport/http/http.js b/js/src/api/transport/http/http.js index f7ef4579d..66ef2dec7 100644 --- a/js/src/api/transport/http/http.js +++ b/js/src/api/transport/http/http.js @@ -93,8 +93,8 @@ export default class Http extends JsonRpcBase { this .execute('net_listening') - .then(nextTimeout) - .catch(nextTimeout); + .then(() => nextTimeout()) + .catch(() => nextTimeout()); } set url (url) { diff --git a/js/src/views/Signer/store.js b/js/src/views/Signer/store.js index e99333159..a18f4e209 100644 --- a/js/src/views/Signer/store.js +++ b/js/src/views/Signer/store.js @@ -101,7 +101,7 @@ export default class SignerStore { this.setLocalHashes(keys); }) - .then(nextTimeout) - .catch(nextTimeout); + .then(() => nextTimeout()) + .catch(() => nextTimeout()); } }