From 396a9f8c53914df996ee055bc006b32d371b7121 Mon Sep 17 00:00:00 2001 From: gxz Date: Tue, 21 May 2024 16:36:20 +0800 Subject: [PATCH] chore: optimize --- ts/Api/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/Api/index.ts b/ts/Api/index.ts index a0f72447a..2e66eb01b 100644 --- a/ts/Api/index.ts +++ b/ts/Api/index.ts @@ -1216,7 +1216,7 @@ class AgoraRtcEngine extends EventEmitter { if (channelStreams.size === 0) { this.streams.delete(channelId || ''); } - } catch (err) { + } catch (err: any) { onFailure && onFailure(err); } } @@ -1249,7 +1249,7 @@ class AgoraRtcEngine extends EventEmitter { if (channelStreams.size === 0) { this.streams.delete(channelId || ''); } - } catch (err) { + } catch (err:any) { exception = err; console.error(`${err.stack}`); }