summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-09 07:44:25 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-09 07:44:25 -0400
commit088239ebece34d5f4931bb8ecbbf7b5c5ca5aec6 (patch)
treee2b194f8250b27f5215f075f16be0b13eb22e44a /libgpsd_core.c
parentf1340d6674e77ae35876b66d027db01dbd82db65 (diff)
downloadgpsd-088239ebece34d5f4931bb8ecbbf7b5c5ca5aec6.tar.gz
Make a 0 rewake time meaningful.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 9bea0a43..211a9a78 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1416,6 +1416,8 @@ int gpsd_multipoll(const bool data_ready,
return DEVICE_READY;
}
}
+ } else if (reawake_time == 0) {
+ return DEVICE_ERROR;
} else {
/*
* Disable listening to this fd for long enough