From 35edcb342ded5a9bdc4f0627f0c213b85c033bba Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 10 Oct 2022 18:15:53 -0500 Subject: fix operand order --- src/slskd/Network/API/Hubs/NetworkHub.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/slskd/Network/API') diff --git a/src/slskd/Network/API/Hubs/NetworkHub.cs b/src/slskd/Network/API/Hubs/NetworkHub.cs index becbbed0..78a658d4 100644 --- a/src/slskd/Network/API/Hubs/NetworkHub.cs +++ b/src/slskd/Network/API/Hubs/NetworkHub.cs @@ -79,7 +79,7 @@ namespace slskd.Network if (Network.TryValidateAuthenticationChallengeResponse(Context.ConnectionId, agent, challengeResponse)) { Log.Information("Agent connection {Id} authenticated as agent {Agent}", Context.ConnectionId, agent); - Network.RegisterAgent(agent, Context.ConnectionId); + Network.RegisterAgent(Context.ConnectionId, agent); return true; } @@ -96,6 +96,7 @@ namespace slskd.Network } // this can happen if the agent attempts to upload before logging in + Log.Information("Agent connection {Id} requested a share upload token, but was not registered.", Context.ConnectionId); throw new UnauthorizedAccessException(); } } -- cgit v1.2.3