diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-25 10:28:25 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-25 10:28:25 -0500 |
| commit | 7510f1d4165bdff9f3c656cd31b5ba883fb6cb18 (patch) | |
| tree | e2100511ff218406150235697b110d95ab697031 /src/slskd/Network/API/Hubs | |
| parent | 5493a29466b808b3faaeeec5cb8d16584961fc86 (diff) | |
| download | slskd-7510f1d4165bdff9f3c656cd31b5ba883fb6cb18.tar.gz | |
cleanup and docs of file info exchange
Diffstat (limited to 'src/slskd/Network/API/Hubs')
| -rw-r--r-- | src/slskd/Network/API/Hubs/NetworkHub.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/slskd/Network/API/Hubs/NetworkHub.cs b/src/slskd/Network/API/Hubs/NetworkHub.cs index 32575e8d..e654f795 100644 --- a/src/slskd/Network/API/Hubs/NetworkHub.cs +++ b/src/slskd/Network/API/Hubs/NetworkHub.cs @@ -102,13 +102,7 @@ namespace slskd.Network public void ReturnFileInfo(Guid id, bool exists, long length) { - if (!Network.TryGetAgentRegistration(Context.ConnectionId, out var record)) - { - Log.Warning("Agent connection {Id} responded to a file info request with Id {Id}, but is not registered.", Context.ConnectionId, id); - return; - } - - Network.HandleFileInfoResponse(record.Agent.Name, id, (exists, length)); + Network.HandleFileInfoResponse(id, (exists, length)); } } }
\ No newline at end of file |
