check for lokinet pid

This commit is contained in:
Jeff Becker 2020-11-27 07:07:49 -05:00
parent 3fc81c8633
commit d1a0a2e806
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ bool WindowsLokinetProcessManager::doStartLokinetProcess()
bool success = QProcess::startDetached(path, {"start", "lokinet"});
if (!success)
qDebug("QProcess::startDetached() failed");
return success;
int pid = -1;
return success and doGetProcessPid(pid) and pid != -1;
}
bool WindowsLokinetProcessManager::doStopLokinetProcess()