diff --git a/src/zapit/src/scanait.cpp b/src/zapit/src/scanait.cpp index 3b667d860..e0f0d361a 100644 --- a/src/zapit/src/scanait.cpp +++ b/src/zapit/src/scanait.cpp @@ -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()