1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #1491 from MetaMask/inpage-polling-fix

inpage-provider - disable polling after first block
This commit is contained in:
Dan Finlay 2017-05-24 16:05:15 -07:00 committed by GitHub
commit a5f6cfe7d7

View File

@ -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