summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-09-18 17:22:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-09-18 17:22:09 +0200
commit3219452195dec73875dfc5e30e575df11b33d4e8 (patch)
treec88bac524069831ea2b6ca7feb62f6fe78d514d1 /interface.c
parent76e49580ee2371446390fda350ca146a062dcb41 (diff)
downloadvdr-3219452195dec73875dfc5e30e575df11b33d4e8.tar.gz
vdr-3219452195dec73875dfc5e30e575df11b33d4e8.tar.bz2
Fixed Wait function
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/interface.c b/interface.c
index 5937e5c4..95efe90f 100644
--- a/interface.c
+++ b/interface.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.c 1.17 2000/09/17 09:25:30 kls Exp $
+ * $Id: interface.c 1.18 2000/09/18 17:22:09 kls Exp $
*/
#include "interface.h"
@@ -73,14 +73,9 @@ void cInterface::PutKey(eKeys Key)
eKeys cInterface::Wait(int Seconds, bool KeepChar)
{
- int t0 = time_ms() + Seconds * 1000;
eKeys Key = kNone;
-
- while (time_ms() < t0) {
- Key = GetKey();
- if (Key != kNone || cFile::AnyFileReady())
- break;
- }
+ if (cFile::AnyFileReady(-1, Seconds * 1000))
+ Key = GetKey();
if (KeepChar)
keyFromWait = Key;
return Key;