aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-05-25 07:05:15 +0800
committerGitHub <noreply@github.com>2017-05-25 07:05:15 +0800
commita5f6cfe7d7c38686679ad8a5870630d12569f8e2 (patch)
tree5bf3f730afed3ec8a26a0f1d611329ff006568d4
parent1ffc6ea0b3a44efb579d1b9df81d52099fcc06ae (diff)
parente6b278569ea072aa88416e769d4803a73b77194c (diff)
downloadtangerine-wallet-browser-a5f6cfe7d7c38686679ad8a5870630d12569f8e2.tar
tangerine-wallet-browser-a5f6cfe7d7c38686679ad8a5870630d12569f8e2.tar.gz
tangerine-wallet-browser-a5f6cfe7d7c38686679ad8a5870630d12569f8e2.tar.bz2
tangerine-wallet-browser-a5f6cfe7d7c38686679ad8a5870630d12569f8e2.tar.lz
tangerine-wallet-browser-a5f6cfe7d7c38686679ad8a5870630d12569f8e2.tar.xz
tangerine-wallet-browser-a5f6cfe7d7c38686679ad8a5870630d12569f8e2.tar.zst
tangerine-wallet-browser-a5f6cfe7d7c38686679ad8a5870630d12569f8e2.zip
Merge pull request #1491 from MetaMask/inpage-polling-fix
inpage-provider - disable polling after first block
-rw-r--r--app/scripts/lib/inpage-provider.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index e54f547bd..39196e240 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -44,8 +44,9 @@ function MetamaskInpageProvider (connectionStream) {
(err) => logStreamDisconnectWarning('MetaMask RpcProvider', err)
)
- // start polling
+ // start and stop polling to unblock first block lock
engine.start()
+ engine.once('latest', () => engine.stop())
self.idMap = {}
// handle sendAsync requests via asyncProvider