summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-17 09:06:31 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-17 09:06:31 +0000
commit972b3bf952b2d1316f8be325927dd9a24db0dad5 (patch)
treee66e9b3367f4a4c0c92896d3dd3a4b8c2347be34 /gpsd.c
parent34eb106de46f9a6c023853b51ace9497a880625e (diff)
downloadgpsd-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 8852bbd8..154620dc 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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);