aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 3f0490dc..63ac2cc0 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -588,7 +588,7 @@ namespace slskd
var requiresRestart = HasAttribute<RequiresRestartAttribute>(property);
var requiresReconnect = HasAttribute<RequiresReconnectAttribute>(property);
- Log.Debug($"{fqn} changed from '{left.ToJson() ?? "<null>"}' to '{right.ToJson() ?? "<null>"}'{(requiresRestart ? "; Restart required to take effect." : string.Empty)}{(requiresReconnect ? "; Reconnect required to take effect." : string.Empty)}");
+ Log.Debug($"{fqn} changed from '{left.ToJson() ?? "<null>"}' to '{right.ToJson() ?? "<null>"}'{(requiresRestart ? ". Restart required to take effect." : string.Empty)}{(requiresReconnect ? "; Reconnect required to take effect." : string.Empty)}");
pendingRestart |= requiresRestart;
pendingReconnect |= requiresReconnect;
@@ -601,6 +601,13 @@ namespace slskd
Log.Information("Shared directory configuration changed. Shares must be re-scanned for changes to take effect.");
}
+ var removedQueues = PreviousOptions.Queues.Custom.Keys.Where(key => !newOptions.Queues.Custom.ContainsKey(key));
+ if (removedQueues.Any())
+ {
+ Log.Information("Custom queue(s) {Queues} removed or renamed. Restart required to take effect.", string.Join(", ", removedQueues));
+ pendingRestart = true;
+ }
+
if (PreviousOptions.Filters.Share.Except(newOptions.Filters.Share).Any()
|| newOptions.Filters.Share.Except(PreviousOptions.Filters.Share).Any())
{
@@ -615,8 +622,6 @@ namespace slskd
_ = RoomService.TryJoinAsync(newOptions.Rooms);
}
- // todo: determine if any custom queues were deleted, and require a restart if so
-
// determine whether any Soulseek options changed. if so, we need to construct a patch and invoke ReconfigureOptionsAsync().
var slskDiff = PreviousOptions.Soulseek.DiffWith(newOptions.Soulseek);