Skip to content

Commit

Permalink
Check updater exit status on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Sep 18, 2024
1 parent 98ba2c7 commit 22a3093
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Telegram/SourceFiles/platform/linux/launcher_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ bool Launcher::launchUpdater(UpdaterLaunch action) {
Logs::closeMain();
CrashReports::Finish();

int waitStatus = 0;
if (justRelaunch) {
return GLib::spawn_async(
initialWorkingDir().toStdString(),
Expand All @@ -129,8 +130,8 @@ bool Launcher::launchUpdater(UpdaterLaunch action) {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr)) {
&waitStatus,
nullptr) || !g_spawn_check_exit_status(waitStatus, nullptr)) {
return false;
}
return launchUpdater(UpdaterLaunch::JustRelaunch);
Expand Down

0 comments on commit 22a3093

Please sign in to comment.