mirror of
https://github.com/Caraxi/mare.client.git
synced 2026-01-03 17:43:39 +01:00
disable data application and scanner in combat
This commit is contained in:
parent
bcf0d422b8
commit
bd32a55ce5
13 changed files with 95 additions and 43 deletions
|
|
@ -65,7 +65,7 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
|
|||
|
||||
public async Task DownloadFiles(GameObjectHandler gameObject, List<FileReplacementData> fileReplacementDto, CancellationToken ct)
|
||||
{
|
||||
Mediator.Publish(new HaltScanMessage("Download"));
|
||||
Mediator.Publish(new HaltScanMessage(nameof(DownloadFiles)));
|
||||
try
|
||||
{
|
||||
await DownloadFilesInternal(gameObject, fileReplacementDto, ct).ConfigureAwait(false);
|
||||
|
|
@ -77,7 +77,7 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
|
|||
finally
|
||||
{
|
||||
Mediator.Publish(new DownloadFinishedMessage(gameObject));
|
||||
Mediator.Publish(new ResumeScanMessage("Download"));
|
||||
Mediator.Publish(new ResumeScanMessage(nameof(DownloadFiles)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace MareSynchronos.WebAPI.Files
|
||||
namespace MareSynchronos.WebAPI.Files
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for streaming data with throttling support.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue