Fix: OpenTTD can fail to exit on an error due to mutex locks in threads. (#11398)
This commit is contained in:
@@ -121,7 +121,7 @@ void UserErrorI(const std::string &str)
|
|||||||
EM_ASM(if (window["openttd_abort"]) openttd_abort());
|
EM_ASM(if (window["openttd_abort"]) openttd_abort());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user