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') {
|
||||
try {
|
||||
// @ts-ignore
|
||||
this[event](payload)
|
||||
await this[event](payload)
|
||||
} catch (error: any) {
|
||||
this._remoteLog.error(`error while processing websocket event`, { event, error })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user