Skip to content

Commit 5e5a8d5

Browse files
committed
update cache inside lock
avoid concurrent cache updates
1 parent 8dba1d8 commit 5e5a8d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry-android-core/src/main/java/io/sentry/android/core/internal/util/AndroidConnectionStatusProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ private void updateCache() {
401401
+ ", Type: "
402402
+ getConnectionTypeFromCache());
403403
}
404-
isUpdatingCache.set(false);
405404
}
406405
}
406+
isUpdatingCache.set(false);
407407
}
408408
});
409409

0 commit comments

Comments
 (0)