Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Nov 22, 2024
1 parent 107316c commit 95aaf79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion ts/Private/internal/MediaEngineInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export class MediaEngineInternal extends IMediaEngineImpl {
MediaEngineInternal._video_encoded_frame_observers = [];
MediaEngineInternal._face_info_observers = [];
this.removeAllListeners();
super.release();
}

_addListenerPreCheck<EventType extends keyof IMediaEngineEvent>(
Expand Down
2 changes: 0 additions & 2 deletions ts/Private/internal/RtcEngineExInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export class RtcEngineExInternal extends IRtcEngineExImpl {
AgoraEnv.AgoraElectronBridge.ReleaseRenderer();
AgoraEnv.AgoraRendererManager?.release();
AgoraEnv.AgoraRendererManager = undefined;
this._audio_device_manager.release();
this._video_device_manager.release();
this._media_engine.release();
this._local_spatial_audio_engine.release();
RtcEngineExInternal._event_handlers = [];
Expand Down

0 comments on commit 95aaf79

Please sign in to comment.