diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-11 23:16:47 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-11 23:16:47 -0500 |
commit | dc474138fe67f41f08f4f942e9e68e1fbc15a6ad (patch) | |
tree | d515a95d947de6e87e6fa8475f4a6b61d1d7ffec /libgpsd_core.c | |
parent | 134114023bf10242a6d8d3caf9c8d6219dc136e6 (diff) | |
download | gpsd-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.c | 2 |
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) |