summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-06 16:46:18 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-06 16:46:18 +0100
commitbbe24e4e622f8f77e63724b4d624b0a7dc0c7d12 (patch)
tree533cb0970c8932e73cfcc19f5b8917671cbf4be4 /device.c
parentcb696731e693392e07817d276f7ccb627a23dc51 (diff)
downloadvdr-bbe24e4e622f8f77e63724b4d624b0a7dc0c7d12.tar.gz
vdr-bbe24e4e622f8f77e63724b4d624b0a7dc0c7d12.tar.bz2
Fixed a possible race condition in cDevice::Action()
Diffstat (limited to 'device.c')
-rw-r--r--device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index e217ceb3..390cf92f 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 1.69 2005/01/06 14:56:08 kls Exp $
+ * $Id: device.c 1.70 2005/01/06 16:45:12 kls Exp $
*/
#include "device.h"
@@ -976,8 +976,8 @@ bool cDevice::Receiving(bool CheckAny) const
void cDevice::Action(void)
{
+ active = true;
if (OpenDvr()) {
- active = true;
for (; active;) {
// Read data from the DVR device:
uchar *b = NULL;