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();
switch (builtin.os.tag) {
.linux,
.macosx,
.freebsd,
.netbsd,
.dragonfly,
=> self.fs_thread.wait(),
else => {},
if (!builtin.single_threaded) {
switch (builtin.os.tag) {
.linux,
.macosx,
.freebsd,
.netbsd,
.dragonfly,
=> self.fs_thread.wait(),
else => {},
}
}
for (self.extra_threads) |extra_thread| {