zapit: supplement to last commit

Origin commit data
------------------
Commit: bca3a8fbd5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-14 (Thu, 14 Oct 2021)
This commit is contained in:
Jacek Jendrzej
2021-10-14 21:32:21 +02:00
committed by vanhofen
parent ccf28b15db
commit 960cd8ea55

View File

@@ -56,8 +56,11 @@ bool CAit::Start()
bool CAit::Stop()
{
int ret = join();
return (ret == 0);
if(pid > 0){
int ret = join();
return (ret == 0);
}
return false;
}
void CAit::run()