Skip to content

Commit

Permalink
fix(android): Fixed a ConcurrentModificationException.
Browse files Browse the repository at this point in the history
Fixed #93.
  • Loading branch information
Skyost committed Jul 15, 2024
1 parent 6709e95 commit 1f0b163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bonsoir/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {
applicationId "fr.skyost.bonsoir_example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 19
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class BonsoirServiceDiscovery(
* @param type The service type.
*/
private fun findService(name: String, type: String? = null): BonsoirService? {
for (service in services) {
for (service in ArrayList(services)) {
if (name == service.name && (type == null || type == service.type)) {
return service
}
Expand Down

0 comments on commit 1f0b163

Please sign in to comment.