diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-01-09 22:26:06 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-01-09 22:26:06 -0600 |
| commit | 8e3414a8f9567c336c86ce124be94a19bfb1cc5e (patch) | |
| tree | 3f57a966c37622e3e45f2cea14d0b68133820ec6 /src | |
| parent | 6d12d62ec3bae84dfc4854699911eef042797794 (diff) | |
| download | slskd-8e3414a8f9567c336c86ce124be94a19bfb1cc5e.tar.gz | |
require restart if changing custom queues or number of slots
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Options.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index ffe62146..fb746984 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -390,6 +390,7 @@ namespace slskd public QueueOptions Default { get; init; } = new QueueOptions(); [Validate] + [RequiresRestart] public Dictionary<string, QueueOptions> Custom { get; init; } = new Dictionary<string, QueueOptions>(); /// <summary> @@ -432,6 +433,7 @@ namespace slskd [Enum(typeof(QueueStrategy))] public string Strategy { get; init; } = "roundrobin"; + [RequiresRestart] [Range(1, int.MaxValue)] public int Slots { get; init; } = 10; |
