Skip to content
Snippets Groups Projects
Commit 6c6adcac authored by yamadapc's avatar yamadapc
Browse files

Fix more dropping messages bugs

parent 2fb9fb01
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
This diff is collapsed.
No preview for this file type
This diff is collapsed.
......@@ -117,7 +117,6 @@ var Steem = function (_EventEmitter) {
var releaseMessage = _this2.listenTo(_this2.ws, 'message', function (message) {
debugWs('Received message', message.data);
releaseMessage();
_this2.emit('message', JSON.parse(message.data));
});
......@@ -159,7 +158,6 @@ var Steem = function (_EventEmitter) {
var _this3 = this;
if (this.apiIdsP) return this.apiIdsP;
this.apiIdsP = _bluebird2.default.map(Object.keys(this.apiIds), function (name) {
debugSetup('Syncing API IDs', name);
return _this3.getApiByNameAsync(name).then(function (result) {
......
......@@ -75,7 +75,6 @@ class Steem extends EventEmitter {
const releaseMessage = this.listenTo(this.ws, 'message', (message) => {
debugWs('Received message', message.data);
releaseMessage();
this.emit('message', JSON.parse(message.data));
});
......@@ -116,7 +115,6 @@ class Steem extends EventEmitter {
getApiIds() {
if (this.apiIdsP) return this.apiIdsP;
this.apiIdsP = Promise.map(Object.keys(this.apiIds), (name) => {
debugSetup('Syncing API IDs', name);
return this.getApiByNameAsync(name).then((result) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment