summaryrefslogtreecommitdiff
path: root/lirc.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-14 14:21:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-14 14:21:52 +0100
commit0fc891340c459ff28ef2d2007b7450ca207bc567 (patch)
tree5ec316ddf7e5142fe735b563e50fa89ff4c1aaaf /lirc.c
parent0ad4b2a713d3188e54c6833fc5860109725fca0a (diff)
downloadvdr-0fc891340c459ff28ef2d2007b7450ca207bc567.tar.gz
vdr-0fc891340c459ff28ef2d2007b7450ca207bc567.tar.bz2
Fixed canceling the LIRC thread
Diffstat (limited to 'lirc.c')
-rw-r--r--lirc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lirc.c b/lirc.c
index 8fe585ab..dbda75c2 100644
--- a/lirc.c
+++ b/lirc.c
@@ -6,7 +6,7 @@
*
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
*
- * $Id: lirc.c 1.9 2004/12/19 18:05:13 kls Exp $
+ * $Id: lirc.c 1.10 2005/01/14 14:18:42 kls Exp $
*/
#include "lirc.h"
@@ -40,9 +40,11 @@ cLircRemote::cLircRemote(char *DeviceName)
cLircRemote::~cLircRemote()
{
+ int fh = f;
+ f = -1;
Cancel();
- if (f >= 0)
- close(f);
+ if (fh >= 0)
+ close(fh);
}
bool cLircRemote::Ready(void)