mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
catch messages async errors.
This commit is contained in:
parent
693ac08e10
commit
da3b6df703
@ -60,7 +60,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
|
|||||||
if (typeof this[event] === 'function') {
|
if (typeof this[event] === 'function') {
|
||||||
try {
|
try {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this[event](payload)
|
await this[event](payload)
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
this._remoteLog.error(`error while processing websocket event`, { event, error })
|
this._remoteLog.error(`error while processing websocket event`, { event, error })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user