mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Make order book subscription work
This commit is contained in:
@@ -37,7 +37,7 @@ function OrderBook(remote, currency_gets, issuer_gets, currency_pays, issuer_pay
|
||||
function listenerAdded(type, listener) {
|
||||
if (~OrderBook.subscribe_events.indexOf(type)) {
|
||||
self._subs += 1;
|
||||
if (!self._subs && self._remote._connected) {
|
||||
if (self._subs == 1 && self._remote._connected) {
|
||||
self._subscribe();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user