Skip to content

Commit bdcc51c

Browse files
Update src/Sentry/Internal/MainSentryEventProcessor.cs
Co-authored-by: James Crosswell <[email protected]>
1 parent cc7d904 commit bdcc51c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Sentry/Internal/MainSentryEventProcessor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ public SentryEvent Process(SentryEvent @event)
8484
@event.Distribution ??= Distribution;
8585

8686
// If there's no current thread on the event and there is no exception with a stack trace, get the current stack trace
87-
var hasCurrentThread = @event.SentryThreads?.Any(t => t.Current == true) == true;
88-
if (@event.Exception?.StackTrace is null && !hasCurrentThread)
87+
if (@event.Exception?.StackTrace is null && @event.SentryThreads?.Any(t => t.Current == true) != true)
8988
{
9089
var stackTrace = @event.SentryExceptions?.FirstOrDefault()?.Stacktrace
9190
?? SentryStackTraceFactoryAccessor().Create();

0 commit comments

Comments
 (0)