File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,9 @@ var LedgerBridge = function () {
262
262
await this.transport.close();
263
263
this.transport = null;
264
264
}
265
+ if (this.pollingInterval) {
266
+ clearInterval(this.pollingInterval);
267
+ }
265
268
if (replyAction) {
266
269
this.sendMessageToExtension({
267
270
action: replyAction,
@@ -380,9 +383,6 @@ var LedgerBridge = function () {
380
383
key: 'onDisconnect',
381
384
value: function onDisconnect() {
382
385
this.cleanUp();
383
- if (this.pollingInterval) {
384
- clearInterval(this.pollingInterval);
385
- }
386
386
this.sendConnectionMessage(false);
387
387
}
388
388
}, {
Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ export default class LedgerBridge {
214
214
await this . transport . close ( )
215
215
this . transport = null
216
216
}
217
+ if ( this . pollingInterval ) {
218
+ clearInterval ( this . pollingInterval )
219
+ }
217
220
if ( replyAction ) {
218
221
this . sendMessageToExtension ( {
219
222
action : replyAction ,
@@ -331,9 +334,6 @@ export default class LedgerBridge {
331
334
332
335
onDisconnect ( ) {
333
336
this . cleanUp ( )
334
- if ( this . pollingInterval ) {
335
- clearInterval ( this . pollingInterval )
336
- }
337
337
this . sendConnectionMessage ( false )
338
338
}
339
339
You can’t perform that action at this time.
0 commit comments