Skip to content

Commit b6712ff

Browse files
committed
fix: waitForDrained
1 parent abdc01f commit b6712ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/neuron-wallet/src/services/sync

packages/neuron-wallet/src/services/sync/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default class Queue {
7676

7777
public waitForDrained = async (timeout: number = 5000) => {
7878
const startAt: number = +new Date()
79-
while (!this.inProcess) {
79+
while (this.inProcess) {
8080
const now: number = +new Date()
8181
if (now - startAt > timeout) {
8282
return

0 commit comments

Comments
 (0)