Explorar el Código

fix. didn't remove event listener when invoke destroyed

matrixbirds hace 5 años
padre
commit
69be0170dc
Se han modificado 3 ficheros con 3 adiciones y 1 borrados
  1. 1
    0
      lib/RtcEngine.native.js
  2. 1
    1
      lib/RtcEngine.native.js.map
  3. 1
    0
      src/RtcEngine.native.ts

+ 1
- 0
lib/RtcEngine.native.js Ver fichero

@@ -329,6 +329,7 @@ class RtcEngine {
329 329
      * @return void
330 330
      */
331 331
     static destroy() {
332
+        Agora.removeAllListeners();
332 333
         return Agora.destroy();
333 334
     }
334 335
     /**

+ 1
- 1
lib/RtcEngine.native.js.map
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 1
- 0
src/RtcEngine.native.ts Ver fichero

@@ -379,6 +379,7 @@ class RtcEngine {
379 379
      * @return void
380 380
      */
381 381
     public static destroy() {
382
+        Agora.removeAllListeners();
382 383
         return Agora.destroy();
383 384
     }
384 385