diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-17 09:06:31 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-17 09:06:31 +0000 |
commit | 972b3bf952b2d1316f8be325927dd9a24db0dad5 (patch) | |
tree | e66e9b3367f4a4c0c92896d3dd3a4b8c2347be34 /gpsd.c | |
parent | 34eb106de46f9a6c023853b51ace9497a880625e (diff) | |
download | gpsd-972b3bf952b2d1316f8be325927dd9a24db0dad5.tar.gz |
Do a better job of telling gpsd_wrap() that a device has been removed.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1164,7 +1164,7 @@ static void handle_control(int sfd, char *buf) for (cfd = 0; cfd < MAXSUBSCRIBERS; cfd++) if (subscribers[cfd].device == chp) subscribers[cfd].device = NULL; - chp->gpsdata.gps_fd != -1; /* device is already disconnected */ + chp->gpsdata.gps_fd = -1; /* device is already disconnected */ gpsd_wrap(chp); /*@i@*/free_channel(chp); /* modifying observer storage */ (void)write(sfd, "OK\n", 3); |