Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 28e3677

Browse files
author
Eric Andrews
committed
Fix resend tests
1 parent c493005 commit 28e3677

File tree

2 files changed

+340
-315
lines changed

2 files changed

+340
-315
lines changed

streamr-client.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,14 @@
628628

629629
var i
630630
var length = this.queue.length
631+
632+
var originalQueue = this.queue
633+
this.queue = []
634+
631635
for (i=0; i<length; i++) {
632-
var msg = this.queue[i]
636+
var msg = originalQueue[i]
633637
this.handleMessage(msg, false)
634638
}
635-
636-
this.queue = []
637639
}
638640
}
639641

0 commit comments

Comments
 (0)