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:
commit
a5f6cfe7d7
@ -44,8 +44,9 @@ function MetamaskInpageProvider (connectionStream) {
|
|||||||
(err) => logStreamDisconnectWarning('MetaMask RpcProvider', err)
|
(err) => logStreamDisconnectWarning('MetaMask RpcProvider', err)
|
||||||
)
|
)
|
||||||
|
|
||||||
// start polling
|
// start and stop polling to unblock first block lock
|
||||||
engine.start()
|
engine.start()
|
||||||
|
engine.once('latest', () => engine.stop())
|
||||||
|
|
||||||
self.idMap = {}
|
self.idMap = {}
|
||||||
// handle sendAsync requests via asyncProvider
|
// handle sendAsync requests via asyncProvider
|
||||||
|
Loading…
Reference in New Issue
Block a user