Commit 1023103a authored by Karan Bedi's avatar Karan Bedi Committed by Tim Kinnane
Browse files

fix(asteroid): Unhandled exception while resume login

parent b7bd9402
......@@ -107,7 +107,12 @@ export function connect (
asteroid = new Asteroid(config.host, config.useSsl)
setupMethodCache(asteroid) // init instance for later caching method calls
asteroid.on('connected', () => events.emit('connected'))
asteroid.on('connected', () => {
asteroid.resumeLoginPromise.catch(function () {
// pass
})
events.emit('connected')
})
asteroid.on('reconnected', () => events.emit('reconnected'))
let cancelled = false
const rejectionTimeout = setTimeout(function () {
......
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