mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-17 21:37:43 +01:00
fix: unload plugins before unloading Dalamud to prevent crashes
This commit is contained in:
parent
de98b75336
commit
581cb506cc
4 changed files with 52 additions and 23 deletions
|
|
@ -59,6 +59,11 @@ namespace Dalamud
|
|||
// Run session
|
||||
dalamud.Start();
|
||||
dalamud.WaitForUnload();
|
||||
if (dalamud.Framework.DispatchUpdateEvents)
|
||||
{
|
||||
dalamud.DisposePlugins();
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
|
||||
dalamud.Dispose();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue