From 53273459fcbeb1de0449aab50670f1bf7a44afd3 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 29 Oct 2022 17:24:12 -0500 Subject: clean up and tweak NetworkHub --- src/slskd/Network/NetworkService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/slskd/Network/NetworkService.cs') diff --git a/src/slskd/Network/NetworkService.cs b/src/slskd/Network/NetworkService.cs index 7dbd79cd..6ecf5f39 100644 --- a/src/slskd/Network/NetworkService.cs +++ b/src/slskd/Network/NetworkService.cs @@ -54,13 +54,12 @@ namespace slskd.Network /// /// Retrieves a new share upload token for the specified . /// - /// The token is cached internally, and is only valid while it remains in the cache. /// /// This is the first step in a multi-step workflow. The entire sequence is: /// /// /// A remote agent makes a request to the SignalR hub to retrieve a share upload token, which in turn - /// calls . The token is generated and cached. + /// calls . The token is generated and cached, and is only valid while it is in the cache. /// /// /// The remote agent makes an HTTP POST request containing a multipart upload including a backup of its @@ -427,7 +426,7 @@ namespace slskd.Network var key = new WaitKey(nameof(GetFileStreamAsync), agentName, id); var wait = Waiter.Wait(key, timeout, cancellationToken); - await NetworkHub.Clients.Client(record.ConnectionId).RequestFile(filename, id); + await NetworkHub.Clients.Client(record.ConnectionId).RequestFileUpload(filename, id); Log.Information("Requested file {Filename} from Agent {Agent} with ID {Id}. Waiting for incoming connection.", filename, agentName, id); var task = await Task.WhenAny(wait, Task.Delay(timeout, cancellationToken)); -- cgit v1.2.3