Catch exceptions thrown by RunWorker on Windows

The same is already done on other platforms in line 529.
This commit is contained in:
Julian Brost 2021-01-27 15:48:28 +01:00
parent 9219f68c83
commit d7833a5977
1 changed files with 5 additions and 1 deletions

View File

@ -688,7 +688,11 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
}
#ifdef _WIN32
return RunWorker(configs);
try {
return RunWorker(configs);
} catch (...) {
return EXIT_FAILURE;
}
#else /* _WIN32 */
l_UmbrellaPid = getpid();
Application::SetUmbrellaProcess(l_UmbrellaPid);