JS: Fix orderbook subscribe on (re)connect.

This commit is contained in:
Stefan Thomas
2013-03-13 18:54:28 +01:00
parent 83a9ae838a
commit b075f2623f

View File

@@ -59,9 +59,7 @@ var OrderBook = function (remote,
this._remote.on('connect', function () {
if (self._subs) {
self._remote.request_subscribe()
.books([self.to_json()], true)
.request();
self._subscribe();
}
});