mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 20:33:40 +01:00
fix: wait for services to unload in framework destroy
This commit is contained in:
parent
48611dcb74
commit
01efbf358a
2 changed files with 16 additions and 4 deletions
|
|
@ -492,10 +492,7 @@ public sealed class Framework : IDisposable, IServiceType
|
|||
Log.Information("Framework::Destroy!");
|
||||
Service<Dalamud>.Get().Unload();
|
||||
this.RunPendingTickTasks();
|
||||
|
||||
// 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();
|
||||
ServiceManager.WaitForServiceUnload();
|
||||
Log.Information("Framework::Destroy OK!");
|
||||
|
||||
return this.destroyHook.OriginalDisposeSafe(framework);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue