|
@@ -101,7 +101,7 @@ public class ClientCaller : IClientProvider
|
|
|
if (string.IsNullOrEmpty(name))
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
- if (ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
+ if (!ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
try
|
|
@@ -122,6 +122,6 @@ public class ClientCaller : IClientProvider
|
|
|
|
|
|
Task<bool> IClientProvider.PushFile(Guid guid, FileType fileType, byte[] buffer, int current, int total)
|
|
|
{
|
|
|
- return this.SendAsync(guid, "ReceivedFile", guid, fileType, buffer, current, total);
|
|
|
+ return this.SendAsync(guid, "PushFile", guid, fileType, buffer, current, total);
|
|
|
}
|
|
|
}
|