aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Network/NetworkClient.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Network/NetworkClient.cs b/src/slskd/Network/NetworkClient.cs
index a231dad2..1c2515d2 100644
--- a/src/slskd/Network/NetworkClient.cs
+++ b/src/slskd/Network/NetworkClient.cs
@@ -318,9 +318,9 @@ namespace slskd.Network
HubConnection.Reconnecting += HubConnection_Reconnecting;
HubConnection.Closed += HubConnection_Closed;
- HubConnection.On<string, Guid>(NetworkHubMethods.RequestFile, HandleFileRequest);
- HubConnection.On<string, Guid>(NetworkHubMethods.RequestFileInfo, HandleFileInfoRequest);
- HubConnection.On<string>(NetworkHubMethods.AuthenticationChallenge, HandleAuthenticationChallenge);
+ HubConnection.On<string, Guid>(nameof(INetworkHub.RequestFile), HandleFileRequest);
+ HubConnection.On<string, Guid>(nameof(INetworkHub.RequestFileInfo), HandleFileInfoRequest);
+ HubConnection.On<string>(nameof(INetworkHub.Challenge), HandleAuthenticationChallenge);
LastOptionsHash = optionsHash;