소스 검색

feat:优化退出逻辑

leo 1 년 전
부모
커밋
91db4574f4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      static/webRtcYJ/WXtrialInterface.html

+ 5 - 0
static/webRtcYJ/WXtrialInterface.html

@@ -1969,6 +1969,11 @@
         });
       }
       function quit() {
+          engine.disconnect();
+          wsss.close();
+          decodeWoker.postMessage('close');
+          decodeWoker.terminate();
+          webSocketWorker.postMessage('close');
         if (navigator.userAgent.toLowerCase().includes('toutiaomicroapp')) {
           tt.miniProgram.switchTab({
             url: '/pages/home/home',