fix(core): emit error on -404

This commit is contained in:
alina 🌸 2024-05-19 20:05:07 +03:00
parent dc99a9103b
commit e3fc079f05
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -243,6 +243,7 @@ export class SessionConnection extends PersistentConnection {
this._session.resetAuthKey() this._session.resetAuthKey()
this._resetSession() this._resetSession()
this.emit('key-change', null) this.emit('key-change', null)
this.emit('error', error)
return return
} }