From 133d9713bd7dca5443debe7788e9d054c123c25f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 14 Apr 2013 19:11:34 +0200 Subject: [PATCH] CZapitSdtMonitor: don't crash in destructor Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a709a13f54617e9f009f15ccd8a2de73615760d7 Author: Stefan Seyfried Date: 2013-04-14 (Sun, 14 Apr 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 8158dc9bf..85c041bc7 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -2292,6 +2292,8 @@ bool CZapitSdtMonitor::Start() bool CZapitSdtMonitor::Stop() { + if (!started) + return false; started = false; int ret = join(); return (ret == 0);