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,14 +616,16 @@ pub const Loop = struct {
self.workerRun(); self.workerRun();
switch (builtin.os.tag) { if (!builtin.single_threaded) {
.linux, switch (builtin.os.tag) {
.macosx, .linux,
.freebsd, .macosx,
.netbsd, .freebsd,
.dragonfly, .netbsd,
=> self.fs_thread.wait(), .dragonfly,
else => {}, => self.fs_thread.wait(),
else => {},
}
} }
for (self.extra_threads) |extra_thread| { for (self.extra_threads) |extra_thread| {