diff --git a/MareSynchronosServer/MareSynchronosStaticFilesServer/Services/ShardClientReadyMessageService.cs b/MareSynchronosServer/MareSynchronosStaticFilesServer/Services/ShardClientReadyMessageService.cs index 295ab2b..eb52190 100644 --- a/MareSynchronosServer/MareSynchronosStaticFilesServer/Services/ShardClientReadyMessageService.cs +++ b/MareSynchronosServer/MareSynchronosStaticFilesServer/Services/ShardClientReadyMessageService.cs @@ -23,16 +23,16 @@ public class ShardClientReadyMessageService : IClientReadyMessageService public void SendDownloadReady(string uid, Guid requestId) { - var mainUrl = _configurationService.GetValue(nameof(StaticFilesServerConfiguration.MainFileServerAddress)); - var path = MareFiles.MainSendReadyFullPath(mainUrl, uid, requestId); - using HttpRequestMessage msg = new() - { - RequestUri = path - }; - msg.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _tokenGenerator.Token); - _ = Task.Run(async () => { + var mainUrl = _configurationService.GetValue(nameof(StaticFilesServerConfiguration.MainFileServerAddress)); + var path = MareFiles.MainSendReadyFullPath(mainUrl, uid, requestId); + using HttpRequestMessage msg = new() + { + RequestUri = path + }; + msg.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _tokenGenerator.Token); + _logger.LogInformation("Sending Client Ready for {uid}:{requestId} to {path}", uid, requestId, path); try {