mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 02:16:21 +02:00
catch messages async errors.
This commit is contained in:
parent
693ac08e10
commit
da3b6df703
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue