diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2018-01-27 14:45:08 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2018-01-27 14:45:08 +0100 |
commit | 5443fd42195fcc3099325caa3ee189eb64727699 (patch) | |
tree | 8b1839a2e59f8511289c3a3c2de667bc3db9ac57 | |
parent | 626ae82fee4d3f2d8e838a0add09038cafc1c3a6 (diff) | |
download | vdr-5443fd42195fcc3099325caa3ee189eb64727699.tar.gz vdr-5443fd42195fcc3099325caa3ee189eb64727699.tar.bz2 |
Fixed a possible crash when stopping VDR (cont´d)
-rw-r--r-- | device.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |