bearychat-rtm-client
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "bearychat-rtm-client", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "RTM client for BearyChat", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -229,3 +229,3 @@ 'use strict'; | ||
})).catch(function (error) { | ||
if (error instanceof RTMPingTimeoutError) { | ||
if (error instanceof RTMPingTimeoutError && _this5._state !== _RTMConnectionState2.default.CLOSED) { | ||
_this5.emit(_RTMConnectionEvents2.default.ERROR, error); | ||
@@ -260,2 +260,2 @@ _this5._terminate(); | ||
exports.default = RTMConnection; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9SVE1Db25uZWN0aW9uLmpzIl0sIm5hbWVzIjpbIlJUTVBpbmdUaW1lb3V0RXJyb3IiLCJlcnJvck1lc3NhZ2UiLCJjb25zdHJ1Y3RvciIsIl9fcHJvdG9fXyIsInByb3RvdHlwZSIsIkVycm9yIiwicGluZ1RpbWVvdXRFcnJvciIsIlJUTUNvbm5lY3Rpb24iLCJ1cmwiLCJXZWJTb2NrZXQiLCJwaW5nSW50ZXJ2YWwiLCJwaW5nVGltZW91dCIsInN0YXRlIiwiX2hhbmRsZU9wZW4iLCJfc3RhdGUiLCJDT05ORUNURUQiLCJlbWl0IiwiT1BFTiIsIl9zdGFydExvb3AiLCJfaGFuZGxlQ2xvc2UiLCJDTE9TRUQiLCJDTE9TRSIsIl9oYW5kbGVNZXNzYWdlIiwiZXZlbnQiLCJtZXNzYWdlIiwiSlNPTiIsInBhcnNlIiwiZGF0YSIsInR5cGUiLCJQT05HIiwiT0siLCJSRVBMWSIsIl9oYW5kbGVSZXBseU1lc3NhZ2UiLCJNRVNTQUdFIiwiX2hhbmRsZUVycm9yIiwiZXJyb3IiLCJFUlJPUiIsIl9waW5nIiwiX3BpbmdJbnRlcnZhbCIsIl9waW5nVGltZW91dCIsIl9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