fix crash in single-threaded builds

master
Loris Cro 2020-05-07 01:49:38 +02:00 committed by Andrew Kelley
parent 79bf4003da
commit a78ac96134
1 changed files with 10 additions and 8 deletions

View File

@ -616,6 +616,7 @@ pub const Loop = struct {
self.workerRun();
if (!builtin.single_threaded) {
switch (builtin.os.tag) {
.linux,
.macosx,
@ -625,6 +626,7 @@ pub const Loop = struct {
=> self.fs_thread.wait(),
else => {},
}
}
for (self.extra_threads) |extra_thread| {
extra_thread.wait();