diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-09 17:38:53 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-09 17:38:53 -0500 |
commit | 517bb8d5ce9f54708490d675e4387619513263c5 (patch) | |
tree | 82efeb1005661153337287ebbb8de8a94f3dbae5 /libgps_core.c | |
parent | 43055a7bec70ca556d34966ab0492649fa2171fb (diff) | |
download | gpsd-517bb8d5ce9f54708490d675e4387619513263c5.tar.gz |
Make the Qt implementation honor timeout.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c index 533aaec3..0cc35782 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -520,7 +520,7 @@ bool gps_waiting(struct gps_data_t * gpsdata, int timeout) /* all error conditions return "not waiting" -- crude but effective */ return (select(gpsdata->gps_fd + 1, &rfds, NULL, NULL, &tv) == 1); #else - return ((QTcpSocket *) (gpsdata->gps_fd))->waitForReadyRead(250); + return ((QTcpSocket *) (gpsdata->gps_fd))->waitForReadyRead(timeout / 1000); #endif } |