mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 21:01:43 +03:00
fix(discord): ignore destroy promise
This commit is contained in:
@@ -245,7 +245,7 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
|
|||||||
await new Promise<void>((resolve, reject) => {
|
await new Promise<void>((resolve, reject) => {
|
||||||
const onAbort = () => {
|
const onAbort = () => {
|
||||||
cleanup();
|
cleanup();
|
||||||
client.destroy();
|
void client.destroy();
|
||||||
resolve();
|
resolve();
|
||||||
};
|
};
|
||||||
const onError = (err: Error) => {
|
const onError = (err: Error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user