fix crash in single-threaded builds
parent
79bf4003da
commit
a78ac96134
|
@ -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| {
|
||||
|
|
Loading…
Reference in New Issue