OkHttp Dispatcher: java.util.ConcurrentModificationException: mutation occurred during iteration
xerial opened this issue · comments
Taro L. Saito commented
Error: Exception in thread "OkHttp Dispatcher" java.util.ConcurrentModificationException: mutation occurred during iteration
at scala.collection.mutable.MutationTracker$.checkMutations(MutationTracker.scala:43)
at scala.collection.mutable.CheckedIndexedSeqView$CheckedIterator.hasNext(CheckedIndexedSeqView.scala:47)
at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:575)
at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:573)
at scala.collection.AbstractIterable.foreach(Iterable.scala:933)
at wvlet.airframe.rx.RxVar.propagateEvent(RxVar.scala:80)
at wvlet.airframe.rx.RxVar.update(RxVar.scala:65)
at wvlet.airframe.rx.RxVarOps.set(RxVar.scala:96)
at wvlet.airframe.rx.RxVarOps.set$(RxVar.scala:91)
at wvlet.airframe.rx.RxVar.set(RxVar.scala:23)
at wvlet.airframe.http.okhttp.OkHttpChannel$$anon$1.onResponse(OkHttpChannel.scala:71)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)