diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-01-08 13:41:13 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-01-08 13:41:13 +1000 |
commit | 9d2156e5a676c53245ac8c919de042b41173ae22 (patch) | |
tree | dce47da40d612fe3c9de67ef09bf183bbc861956 | |
parent | f7850a40424f7ec0c32fb2b46d427b51b5410d99 (diff) |
Don't reopen ad infinitum if reopen_attempts is 0.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/evdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index faab8f3..8d6d793 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -378,7 +378,7 @@ EvdevReopenTimer(OsTimerPtr timer, CARD32 time, pointer arg) pEvdev->reopen_left--; - if (!pEvdev->reopen_left) + if (pEvdev->reopen_left <= 0) { xf86Msg(X_ERROR, "%s: Failed to reopen device after %d attempts.\n", pInfo->name, pEvdev->reopen_attempts); |