From 3a742f1f141bec7e9a82f5965330d0f09f3ee08e Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 15 Nov 2014 22:58:52 +0200 Subject: [PATCH] Fixed cSatipTuner::Disconnect(). --- tuner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuner.c b/tuner.c index c81adef..e413ce7 100644 --- a/tuner.c +++ b/tuner.c @@ -210,7 +210,7 @@ bool cSatipTuner::Disconnect(void) cMutexLock MutexLock(&mutexM); debug("cSatipTuner::%s() [device %d]", __FUNCTION__, deviceIdM); - if ((tunerStatusM != tsIdle) && !isempty(*streamAddrM) && (streamIdM >= 0)) { + if ((tunerStatusM >= tsTuned) && !isempty(*streamAddrM) && (streamIdM >= 0)) { cString uri = cString::sprintf("rtsp://%s/stream=%d", *streamAddrM, streamIdM); rtspM->Teardown(*uri); }