summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-11 23:16:47 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-11 23:16:47 -0500
commitdc474138fe67f41f08f4f942e9e68e1fbc15a6ad (patch)
treed515a95d947de6e87e6fa8475f4a6b61d1d7ffec /libgpsd_core.c
parent134114023bf10242a6d8d3caf9c8d6219dc136e6 (diff)
downloadgpsd-dc474138fe67f41f08f4f942e9e68e1fbc15a6ad.tar.gz
Correctly mark deactivated devices, and do a better job of dumping them.
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 99c72547..b7673af6 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -323,6 +323,8 @@ void gpsd_deactivate(struct gps_device_t *session)
gpsd_run_device_hook(session->context->debug,
session->gpsdata.dev.path,
"DEACTIVATE");
+ /* mark it inactivated */
+ session->gpsdata.online = (timestamp_t)0;
}
void gpsd_clear(struct gps_device_t *session)