Skip to content

Commit 86c9691

Browse files
committed
WaitForExit instead of arbitrarily sleeping in DownloaderForm
1 parent 03fbb13 commit 86c9691

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/BizHawk.Client.EmuHawk/DownloaderForm.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ private void Download()
106106
fs.Dispose();
107107
if (OSTailoredCode.IsUnixHost)
108108
{
109-
OSTailoredCode.ConstructSubshell("chmod", $"+x {DownloadTo}", checkStdout: false).Start();
110-
Thread.Sleep(50); // Linux I/O flush idk
109+
var proc = OSTailoredCode.ConstructSubshell("chmod", $"+x {DownloadTo}", checkStdout: false);
110+
proc.Start();
111+
proc.WaitForExit();
111112
}
112113
}
113114

0 commit comments

Comments
 (0)