Skip to content

Commit

Permalink
Synchronize setResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
adinauer committed Aug 2, 2023
1 parent 04fded3 commit df553ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sentry/src/main/java/io/sentry/protocol/Contexts.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ public void withResponse(HintUtils.SentryConsumer<Response> callback) {
}

public void setResponse(final @NotNull Response response) {
this.put(Response.TYPE, response);
synchronized (responseLock) {
this.put(Response.TYPE, response);
}
}

// region json
Expand Down

0 comments on commit df553ad

Please sign in to comment.