Skip to content

Commit

Permalink
RavenDB-22199 avoid using the xUnit synchronization context when doin…
Browse files Browse the repository at this point in the history
…g blocking sync calls
  • Loading branch information
karmeli87 committed Apr 15, 2024
1 parent 26ded91 commit 3980a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Raven.Server/RavenServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,7 @@ internal static void VerifyLicense(StorageEnvironment storageEnvironment, Server
var localLicenseStatus = LicenseManager.GetLicenseStatus(localLicense);
if (localLicenseStatus.Expiration >= RavenVersionAttribute.Instance.ReleaseDate)
{
serverStore.LicenseManager.OnBeforeInitialize += () => serverStore.LicenseManager.TryActivateLicenseAsync(throwOnActivationFailure: serverStore.Server.ThrowOnLicenseActivationFailure).Wait(serverStore.ServerShutdown);
serverStore.LicenseManager.OnBeforeInitialize += () => AsyncHelpers.RunSync(() => serverStore.LicenseManager.TryActivateLicenseAsync(throwOnActivationFailure: serverStore.Server.ThrowOnLicenseActivationFailure));
return;
}

Expand Down

0 comments on commit 3980a00

Please sign in to comment.