We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b0487 commit 61c8149Copy full SHA for 61c8149
sentry/src/main/java/io/sentry/cache/PersistingScopeObserver.java
@@ -136,6 +136,8 @@ public void addBreadcrumb(@NotNull Breadcrumb crumb) {
136
@Override
137
public void setBreadcrumbs(@NotNull Collection<Breadcrumb> breadcrumbs) {
138
if (breadcrumbs.isEmpty()) {
139
+ // we only clear the queue if the new collection is empty (someone called clearBreadcrumbs)
140
+ // If it's not empty, we'd add breadcrumbs one-by-one in the method above
141
serializeToDisk(
142
() -> {
143
try {
0 commit comments