[tor-commits] [Git][tpo/applications/firefox-android][firefox-android-115.2.1-13.5-1] fixup! Add Tor integration and UI

Dan Ballard (@dan) git at gitlab.torproject.org
Wed Jan 31 21:11:47 UTC 2024



Dan Ballard pushed to branch firefox-android-115.2.1-13.5-1 at The Tor Project / Applications / firefox-android


Commits:
54d46f59 by Dan Ballard at 2024-01-31T12:42:11-08:00
fixup! Add Tor integration and UI

Bug 42252: Fix safely using iterators while possibly modifying List

- - - - -


1 changed file:

- fenix/app/src/main/java/org/mozilla/fenix/tor/TorControllerGV.kt


Changes:

=====================================
fenix/app/src/main/java/org/mozilla/fenix/tor/TorControllerGV.kt
=====================================
@@ -143,28 +143,28 @@ class TorControllerGV(
     // TorEvents
     override fun onTorConnecting() {
         synchronized(torListeners) {
-            torListeners.forEach { it.onTorConnecting() }
+            torListeners.toList().forEach { it.onTorConnecting() }
         }
     }
 
     // TorEvents
     override fun onTorConnected() {
         synchronized(torListeners) {
-            torListeners.forEach { it.onTorConnected() }
+            torListeners.toList().forEach { it.onTorConnected() }
         }
     }
 
     // TorEvents
     override fun onTorStatusUpdate(entry: String?, status: String?) {
         synchronized(torListeners) {
-            torListeners.forEach { it.onTorStatusUpdate(entry, status) }
+            torListeners.toList().forEach { it.onTorStatusUpdate(entry, status) }
         }
     }
 
     // TorEvents
     override fun onTorStopped() {
         synchronized(torListeners) {
-            torListeners.forEach { it.onTorStopped() }
+            torListeners.toList().forEach { it.onTorStopped() }
         }
     }
 



View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/54d46f592b4b69ab6c8efd2be8138c1930d89c9f

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/54d46f592b4b69ab6c8efd2be8138c1930d89c9f
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240131/2460ee3a/attachment-0001.htm>


More information about the tor-commits mailing list