mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
Do not throw already unloaded exception on exit
This commit is contained in:
parent
9e95ab8ff7
commit
6db7acca20
1 changed files with 3 additions and 1 deletions
|
|
@ -396,7 +396,9 @@ internal class PluginManager : IInternalDisposableService
|
|||
await plugin.UnloadAsync(PluginLoaderDisposalMode.None).SuppressException();
|
||||
|
||||
// Unload plugins that can be unloaded from any thread.
|
||||
await Task.WhenAll(disposablePlugins.Select(plugin => plugin.UnloadAsync(PluginLoaderDisposalMode.None)))
|
||||
await Task.WhenAll(
|
||||
disposablePlugins.Where(plugin => plugin.Manifest.CanUnloadAsync)
|
||||
.Select(plugin => plugin.UnloadAsync(PluginLoaderDisposalMode.None)))
|
||||
.SuppressException();
|
||||
|
||||
// Just in case plugins still have tasks running that they didn't cancel when they should have,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue