Skip to content

Commit c4df30b

Browse files
committed
inFlight should only count active requests, not entire queue
1 parent 1a7611c commit c4df30b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/api/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,11 @@ class Steem extends EventEmitter {
246246
});
247247

248248
debugWs('Sending message', payload);
249+
this.inFlight += 1;
249250
this.ws.send(payload);
250251
}))
251252
.nodeify(callback);
252253

253-
this.inFlight += 1;
254-
255254
return this.currentP;
256255
}
257256

0 commit comments

Comments
 (0)