From c62a5a6b15ee36f0cd6f6739ee8b0b2930463b7a Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Thu, 23 Nov 2023 11:44:21 +0100 Subject: [PATCH] hub passes 'GlobalSessionManager' to client --- src/Sentry/Internal/Hub.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sentry/Internal/Hub.cs b/src/Sentry/Internal/Hub.cs index 30861ca298..f511d58568 100644 --- a/src/Sentry/Internal/Hub.cs +++ b/src/Sentry/Internal/Hub.cs @@ -47,9 +47,9 @@ internal Hub( _options = options; _randomValuesFactory = randomValuesFactory ?? new SynchronizedRandomValuesFactory(); - _ownedClient = client ?? new SentryClient(options, randomValuesFactory: _randomValuesFactory); - _clock = clock ?? SystemClock.Clock; _sessionManager = sessionManager ?? new GlobalSessionManager(options); + _ownedClient = client ?? new SentryClient(options, randomValuesFactory: _randomValuesFactory, sessionManager: _sessionManager); + _clock = clock ?? SystemClock.Clock; ScopeManager = scopeManager ?? new SentryScopeManager(options, _ownedClient);