aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-10 18:15:53 -0500
committerJP Dillingham <jp@dillingham.me>2022-10-10 18:15:53 -0500
commit35edcb342ded5a9bdc4f0627f0c213b85c033bba (patch)
treeabbe6bf43e46a29164a927f98d692618ab0ce863 /src
parente35a1445bbe6cddc23c62c7641d887c993fe38a7 (diff)
downloadslskd-35edcb342ded5a9bdc4f0627f0c213b85c033bba.tar.gz
fix operand order
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Network/API/Hubs/NetworkHub.cs3
1 files changed, 2 insertions, 1 deletions
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();
}
}