From 3756fef49879532aa515f50097645a2b0d64bb55 Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Thu, 22 Dec 2022 22:28:03 +0100 Subject: [PATCH] fix _isMainServer verification --- .../MareSynchronosStaticFilesServer/FileCleanupService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MareSynchronosServer/MareSynchronosStaticFilesServer/FileCleanupService.cs b/MareSynchronosServer/MareSynchronosStaticFilesServer/FileCleanupService.cs index 8fc6157..8ef26ba 100644 --- a/MareSynchronosServer/MareSynchronosStaticFilesServer/FileCleanupService.cs +++ b/MareSynchronosServer/MareSynchronosStaticFilesServer/FileCleanupService.cs @@ -22,7 +22,7 @@ public class FileCleanupService : IHostedService _logger = logger; _services = services; _configuration = configuration.GetRequiredSection("MareSynchronos"); - _isMainServer = !string.IsNullOrEmpty(_configuration.GetValue("RemoteCacheSource", string.Empty)); + _isMainServer = string.IsNullOrEmpty(_configuration.GetValue("RemoteCacheSource", string.Empty)); _cacheDir = _configuration.GetValue("CacheDirectory"); }