aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-03-04 12:17:49 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-03-04 12:17:49 -0600
commitc09cd1100420a5858813b0aa417c35a7b18e04e8 (patch)
tree9841cb34fae1bdd738874f1a89291391c06ecc1b /src
parente2b4f5757d1ed3c2751e07e10479d717ddf74228 (diff)
downloadslskd-c09cd1100420a5858813b0aa417c35a7b18e04e8.tar.gz
reset users on connect, not disconnect
Diffstat (limited to 'src')
-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();