Skip to content

Commit fdda7bc

Browse files
author
Fabien
authored
Merge pull request #121 from steemit/fix-inflight-counter
inFlight should only count active requests
2 parents 1a7611c + c4df30b commit fdda7bc

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)