From 42813063aa9bdc34ca1231e090a9631736c863d5 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 17 Apr 2012 14:47:59 +0400 Subject: [PATCH] zapit/src/zapit.cpp: add safe-check in Stop() --- src/zapit/src/zapit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index 8eade5cef..2fc658f2f 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -2049,6 +2049,8 @@ bool CZapit::Start(Z_start_arg *ZapStart_arg) bool CZapit::Stop() { + if(!started) + return false; started = false; int ret = join(); return (ret == 0);