diff --git a/src/launcher/booster.cpp b/src/launcher/booster.cpp index 85e8ac2..e2b3c1c 100644 --- a/src/launcher/booster.cpp +++ b/src/launcher/booster.cpp @@ -98,8 +98,7 @@ void Booster::initialize(int initialArgc, char ** initialArgv, int newPipeFd[2]) // Send to the parent process booster respawn delay value int delay = m_app.delay(); - ret = write(pipeFd(1), reinterpret_cast(&delay), sizeof(int)); - if (ret == -1) { + if (write(pipeFd(1), reinterpret_cast(&delay), sizeof(int)) == -1) { Logger::logError("Booster: Couldn't send respawn delay value to launcher process\n"); }