mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
fix: correctly use dependency order to unload, declare all plugin services as deps to PM
This commit is contained in:
parent
af670d6b11
commit
f032adb155
4 changed files with 222 additions and 26 deletions
|
|
@ -492,7 +492,10 @@ public sealed class Framework : IDisposable, IServiceType
|
|||
Log.Information("Framework::Destroy!");
|
||||
Service<Dalamud>.Get().Unload();
|
||||
this.RunPendingTickTasks();
|
||||
ServiceManager.UnloadAllServices();
|
||||
|
||||
// why did we do this here? EntryPoint also does it when the signal is set, what sense does that make
|
||||
// we should definitely wait for pending tick tasks though
|
||||
// ServiceManager.UnloadAllServices();
|
||||
Log.Information("Framework::Destroy OK!");
|
||||
|
||||
return this.destroyHook.OriginalDisposeSafe(framework);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue