diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application/Service.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Application/Service.cs b/src/slskd/Application/Service.cs index 890f9311..e2f63750 100644 --- a/src/slskd/Application/Service.cs +++ b/src/slskd/Application/Service.cs @@ -361,6 +361,11 @@ namespace slskd private async void Client_Disconnected(object sender, SoulseekClientDisconnectedEventArgs args) { + if (StateMonitor.Current.PendingReconnect) + { + StateMonitor.Set(state => state with { PendingReconnect = false }); + } + if (args.Exception is ObjectDisposedException || args.Exception is ApplicationShutdownException) { Logger.Information("Disconnected from the Soulseek server: the client is shutting down"); |
