mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
catch error type any.
This commit is contained in:
parent
e78e19c44b
commit
970414d79b
@ -181,7 +181,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this._channel.close()
|
this._channel.close()
|
||||||
} catch (err) {}
|
} catch {}
|
||||||
|
|
||||||
this._channel = undefined
|
this._channel = undefined
|
||||||
}
|
}
|
||||||
@ -197,7 +197,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this._peer.close()
|
this._peer.close()
|
||||||
} catch (err) {}
|
} catch {}
|
||||||
|
|
||||||
this._peer = undefined
|
this._peer = undefined
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ export class NekoWebSocket extends EventEmitter<NekoWebSocketEvents> {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this._ws.close()
|
this._ws.close()
|
||||||
} catch (err) {}
|
} catch {}
|
||||||
|
|
||||||
this._ws = undefined
|
this._ws = undefined
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,7 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this.disconnect()
|
this.disconnect()
|
||||||
} catch (e) {}
|
} catch {}
|
||||||
|
|
||||||
if (this.state.authenticated) {
|
if (this.state.authenticated) {
|
||||||
Vue.set(this.state, 'authenticated', false)
|
Vue.set(this.state, 'authenticated', false)
|
||||||
@ -264,7 +264,7 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this.disconnect()
|
this.disconnect()
|
||||||
} catch (e) {}
|
} catch {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.api.session.logout()
|
await this.api.session.logout()
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
URL.revokeObjectURL(image)
|
URL.revokeObjectURL(image)
|
||||||
} catch (e) {
|
} catch {
|
||||||
await new Promise((res) => setTimeout(res, ERROR_DELAY_MS))
|
await new Promise((res) => setTimeout(res, ERROR_DELAY_MS))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user