Skip to content

Commit

Permalink
fix: don't deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Sep 8, 2023
1 parent c8968ce commit c979227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PenumbraIpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void RegisterEvents() {
internal bool TryGetModDirectory([NotNullWhen(true)] out string? modDirectory) {
modDirectory = this.GetModDirectory();
if (modDirectory?.Trim() == string.Empty) {
this.Plugin.PluginUi.AddToDraw(new SetUpPenumbraWindow(this.Plugin));
Task.Run(async () => await this.Plugin.PluginUi.AddToDrawAsync(new SetUpPenumbraWindow(this.Plugin)));
}

return !string.IsNullOrWhiteSpace(modDirectory);
Expand Down

0 comments on commit c979227

Please sign in to comment.