Explorar o código

feat:优化退出逻辑

leo hai 1 ano
pai
achega
91db4574f4
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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',