mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-15 01:14:15 +01:00
potentially fix pets and summons
This commit is contained in:
parent
bd947d8f2a
commit
2e3f7aad2b
4 changed files with 62 additions and 13 deletions
|
|
@ -49,7 +49,7 @@ namespace MareSynchronos.Managers
|
|||
|
||||
public string WatchedPenumbraDirectory => (_penumbraDirWatcher?.EnableRaisingEvents ?? false) ? _penumbraDirWatcher!.Path : "Not watched";
|
||||
|
||||
public FileCache? Create(string file, CancellationToken token)
|
||||
public FileCache? Create(string file, CancellationToken? token)
|
||||
{
|
||||
FileInfo fileInfo = new(file);
|
||||
int attempt = 0;
|
||||
|
|
@ -57,7 +57,7 @@ namespace MareSynchronos.Managers
|
|||
{
|
||||
Thread.Sleep(1000);
|
||||
Logger.Debug("Waiting for file release " + fileInfo.FullName + " attempt " + attempt);
|
||||
token.ThrowIfCancellationRequested();
|
||||
token?.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
if (attempt >= 10) return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue