Skip to content

Commit 830f93d

Browse files
author
Jon Eyrick
authored
Fixed depth cache reconnect with multiple symbols (Thanks mstijak)
1 parent 69ec9eb commit 830f93d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-binance-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ LIMIT_MAKER
645645
depthCache[symbol] = {bids: {}, asks: {}};
646646
messageQueue[symbol] = [];
647647
let reconnect = function() {
648-
if ( options.reconnect ) depthCacheFunction(symbol, callback);
648+
if ( options.reconnect ) depthCacheFunction([symbol], callback);
649649
};
650650
subscribe(symbol.toLowerCase()+'@depth', function(depth) {
651651
if ( !info[symbol].firstUpdateId ) {

0 commit comments

Comments
 (0)