aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/UserService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-03-04 15:33:48 -0600
committerGitHub <noreply@github.com>2022-03-04 15:33:48 -0600
commit052d66c40c34ed6892a90585da24f422bdf1cffb (patch)
tree62506358a386b46cda6a1b49c1c7ea28549f2de1 /src/slskd/Users/UserService.cs
parent817a89fc86f3c0e3f76886d8b2ef75f99fa5feb6 (diff)
parent520c545cfa0004844dd0755303553b3c926d8d87 (diff)
downloadslskd-052d66c40c34ed6892a90585da24f422bdf1cffb.tar.gz
Merge pull request #381 from slskd/upload-disconnect
Ensure transfers in progress continue if the client is disconnected from the server
Diffstat (limited to 'src/slskd/Users/UserService.cs')
-rw-r--r--src/slskd/Users/UserService.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs
index 1854944f..f081d8b1 100644
--- a/src/slskd/Users/UserService.cs
+++ b/src/slskd/Users/UserService.cs
@@ -70,8 +70,8 @@ namespace slskd.Users
_ = GetStatisticsAsync(userStatus.Username);
};
+ Client.Connected += (_, _) => Reset();
Client.LoggedIn += (_, _) => Configure(OptionsMonitor.CurrentValue, force: true);
- Client.Disconnected += (_, _) => Reset();
Configure(OptionsMonitor.CurrentValue);
}
@@ -284,7 +284,6 @@ namespace slskd.Users
return;
}
-
// get a list of tracked names that haven't been explicitly added to any group, including
// those that were previlously configured but have now been removed
var usernamesBeforeUpdate = UserDictionary.Keys.ToList();