소스 검색

Fix concurrent modification exception when switching root

Guy Carmeli 8 년 전
부모
커밋
04ad06ca11
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      android/app/src/main/java/com/reactnativenavigation/events/EventBus.java

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/events/EventBus.java 파일 보기

@@ -21,7 +21,7 @@ public enum EventBus {
21 21
             WeakReference<Subscriber> ref = iterator.next();
22 22
             Subscriber registered = ref.get();
23 23
             if (registered != null && registered == subscriber) {
24
-                subscribers.remove(ref);
24
+                iterator.remove();
25 25
             }
26 26
         }
27 27
     }