From 5443fd42195fcc3099325caa3ee189eb64727699 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 27 Jan 2018 14:45:08 +0100 Subject: =?UTF-8?q?Fixed=20a=20possible=20crash=20when=20stopping=20VDR=20?= =?UTF-8?q?(cont=C2=B4d)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/device.c b/device.c index dbd36406..a8cb0b55 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 4.25 2017/12/16 13:13:13 kls Exp $ + * $Id: device.c 4.26 2018/01/27 14:45:08 kls Exp $ */ #include "device.h" @@ -120,6 +120,7 @@ cDevice::~cDevice() delete dvbSubtitleConverter; if (this == primaryDevice) primaryDevice = NULL; + Cancel(3); } bool cDevice::WaitForAllDevicesReady(int Timeout) @@ -1821,7 +1822,7 @@ void cDevice::Detach(cReceiver *Receiver) } } if (!receiversLeft) - Cancel(3); + Cancel(-1); } void cDevice::DetachAll(int Pid) -- cgit v1.2.3