Skip to content

Commit e4d6250

Browse files
Merge pull request #111 from nullinside-development-group/bug/crash
bug: fixing crash from leaving gui thread
2 parents d4828e1 + 54c413e commit e4d6250

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/TwitchStreamingTools/Views/WindowsTitleBar.axaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ private async void SubscribeToWindowState() {
110110

111111
while (hostWindow == null) {
112112
hostWindow = VisualRoot as Window;
113-
await Task.Delay(50).ConfigureAwait(false);
113+
114+
// Need to stay on the GUI thread.
115+
await Task.Delay(50).ConfigureAwait(true);
114116
}
115117

116118
hostWindow.GetObservable(Window.WindowStateProperty).Subscribe(s => {

0 commit comments

Comments
 (0)