Fixed a possible crash when stopping VDR

This commit is contained in:
Klaus Schmidinger
2017-08-31 11:46:16 +02:00
parent 9719766007
commit f2a2c67152
3 changed files with 6 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: device.c 4.23 2017/05/30 11:06:11 kls Exp $
* $Id: device.c 4.24 2017/08/31 11:34:54 kls Exp $
*/
#include "device.h"
@@ -1823,7 +1823,7 @@ void cDevice::Detach(cReceiver *Receiver)
}
}
if (!receiversLeft)
Cancel(-1);
Cancel(3);
}
void cDevice::DetachAll(int Pid)