From 5ad07e3e956586ad13a4c9eea5707511161e82f7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 18 Oct 2017 16:46:21 +0200 Subject: [PATCH] dont set callback if vmprovider already set up --- src/web3Provider/web3VmProvider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web3Provider/web3VmProvider.js b/src/web3Provider/web3VmProvider.js index 9da1891894..c4317b750a 100644 --- a/src/web3Provider/web3VmProvider.js +++ b/src/web3Provider/web3VmProvider.js @@ -43,6 +43,7 @@ function web3VmProvider () { } web3VmProvider.prototype.setVM = function (vm) { + if (this.vm === vm) return var self = this this.vm = vm this.vm.on('step', function (data) {