Skip to content

Commit 666db39

Browse files
committed
fix: Safe-navigate to session flusher
1 parent c3bcfa0 commit 666db39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry-ruby/lib/sentry/hub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def end_session
248248

249249
return unless session
250250
session.close
251-
Sentry.session_flusher.add_session(session)
251+
Sentry.session_flusher&.add_session(session)
252252
end
253253

254254
def with_session_tracking(&block)

0 commit comments

Comments
 (0)