Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
fix restart
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Jul 2, 2024
1 parent 55f8fba commit 308b532
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public virtual Task DeactivateAsync()
public virtual async Task RestartAsync()
{
await DeactivateAsync();
await Task.Delay(100);
await ActivateAsync();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ await Dispatcher.UIThread.InvokeAsync(async () =>
{
Client.SendExit();

await Task.Delay(100);
await Task.Delay(200);
Client = null;
IsLanguageServiceReady = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public override async Task ActivateAsync()
{
if (!_enableAutoDownload) return;
if(!await _packageService.InstallAsync(_package)) return;
await Task.Delay(100);
}
await base.ActivateAsync();
}
Expand Down

0 comments on commit 308b532

Please sign in to comment.