mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: promise catch
This commit is contained in:
parent
d4427cfff4
commit
473ebd25b8
@ -35,7 +35,7 @@ export function postWsEvent(event: PostEventType) {
|
||||
for (const ws of eventWSList) {
|
||||
new Promise(() => {
|
||||
wsReply(ws, event)
|
||||
}).then()
|
||||
}).then().catch(log)
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ export function postOb11Event(msg: PostEventType, reportSelf = false, postWs = t
|
||||
(err: any) => {
|
||||
log(`新消息事件HTTP上报失败: ${host} `, err, msg)
|
||||
},
|
||||
)
|
||||
).catch(log)
|
||||
}
|
||||
}
|
||||
if (postWs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user