Pārlūkot izejas kodu

fix. didn't remove event listener when invoke destroyed

matrixbirds 5 gadus atpakaļ
vecāks
revīzija
69be0170dc
3 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

@@ -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
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 0
src/RtcEngine.native.ts Parādīt failu

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