aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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();
}
}