Parcourir la source

fix. didn't remove event listener when invoke destroyed

matrixbirds il y a 5 ans
Parent
révision
69be0170dc
3 fichiers modifiés avec 3 ajouts et 1 suppressions
  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 Voir le fichier

@@ -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
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 1
- 0
src/RtcEngine.native.ts Voir le fichier

@@ -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