Auto-Updater: increase lock file waiting timeout in the case of updating

Normal case: timeout reduced from 3s to 2s.
Updating case: increased timeout to 10s.
This commit is contained in:
Nekotekina 2020-03-23 22:49:14 +03:00
parent 3d78694590
commit 19e20d9c19
2 changed files with 9 additions and 4 deletions

View file

@ -596,9 +596,9 @@ bool update_manager::handle_rpcs3()
QMessageBox::information(m_parent, tr("Auto-updater"), tr("Update successful!"));
#ifdef _WIN32
const int ret = _wexecl(orig_path, orig_path, nullptr);
const int ret = _wexecl(orig_path, orig_path, L"--updating", nullptr);
#else
const int ret = execl(replace_path.c_str(), replace_path.c_str(), nullptr);
const int ret = execl(replace_path.c_str(), replace_path.c_str(), "--updating", nullptr);
#endif
if (ret == -1)
{