summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-23 14:08:42 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-23 14:08:42 -0400
commitc51ff0b14a9c0f5e4a7fa3f94f4fa7cee66918c2 (patch)
tree057515f4cffe3525419433bac8f67d8410e14a5c /libgpsd_core.c
parent84c08315e2e04dd0ae11cfa4bbc218d017d29562 (diff)
downloadgpsd-c51ff0b14a9c0f5e4a7fa3f94f4fa7cee66918c2.tar.gz
The ship_to_ntpd flag shouldn't latch.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index e6713f1b..6def8783 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -928,6 +928,7 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)
* Only update the NTP time if we've seen the leap-seconds data.
* Else we may be providing GPS time.
*/
+ session->ship_to_ntpd = false;
if (session->context->enable_ntpshm == 0) {
//gpsd_report(LOG_PROG, "NTP: off\n");
} else if ((received & TIME_IS) == 0) {