diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-07-17 14:35:31 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-07-17 14:35:31 +0200 |
commit | 4807f978e5ad6f2310b71f10ab56c268bfb04852 (patch) | |
tree | ab96895415b8d4a6833af4b2ea297a268d9c352d /sections.c | |
parent | 8d0a800391859a151019c05d898a581013f01f73 (diff) | |
download | vdr-4807f978e5ad6f2310b71f10ab56c268bfb04852.tar.gz vdr-4807f978e5ad6f2310b71f10ab56c268bfb04852.tar.bz2 |
Fixed handling error case '-1' when polling section filters
Diffstat (limited to 'sections.c')
-rw-r--r-- | sections.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sections.c 1.6 2004/07/17 14:17:07 kls Exp $ + * $Id: sections.c 1.7 2004/07/17 14:26:32 kls Exp $ */ #include "sections.h" @@ -172,7 +172,7 @@ void cSectionHandler::Action(void) int oldStatusCount = statusCount; Unlock(); - if (poll(pfd, NumFilters, 1000) != 0) { + if (poll(pfd, NumFilters, 1000) > 0) { bool DeviceHasLock = device->HasLock(); if (!DeviceHasLock) usleep(100000); |