Browse Source

fix. didn't remove event listener when invoke destroyed

matrixbirds 5 years ago
parent
commit
69be0170dc
3 changed files with 3 additions and 1 deletions
  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 View File

329
      * @return void
329
      * @return void
330
      */
330
      */
331
     static destroy() {
331
     static destroy() {
332
+        Agora.removeAllListeners();
332
         return Agora.destroy();
333
         return Agora.destroy();
333
     }
334
     }
334
     /**
335
     /**

+ 1
- 1
lib/RtcEngine.native.js.map
File diff suppressed because it is too large
View File


+ 1
- 0
src/RtcEngine.native.ts View File

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