Commit c4d24eee authored by Tim Kinnane's avatar Tim Kinnane

fix(asteroid): Restore catch function

parent f002ccb6
This diff is collapsed.
......@@ -82,7 +82,9 @@ function connect(options = {}, callback) {
exports.asteroid = new asteroid_1.default(config.host, config.useSsl);
setupMethodCache(exports.asteroid); // init instance for later caching method calls
exports.asteroid.on('connected', () => {
exports.asteroid.resumeLoginPromise.catch();
exports.asteroid.resumeLoginPromise.catch(function () {
// pass
});
exports.events.emit('connected');
});
exports.asteroid.on('reconnected', () => exports.events.emit('reconnected'));
......
This diff is collapsed.
......@@ -108,7 +108,9 @@ export function connect (
setupMethodCache(asteroid) // init instance for later caching method calls
asteroid.on('connected', () => {
asteroid.resumeLoginPromise.catch()
asteroid.resumeLoginPromise.catch(function () {
// pass
})
events.emit('connected')
})
asteroid.on('reconnected', () => events.emit('reconnected'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment