summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 05c3f6c2..736096ee 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -888,6 +888,7 @@ static void handle_control(int sfd, char *buf)
for (cfd = 0; cfd < FD_SETSIZE; cfd++)
if (subscribers[cfd].device == *chp)
subscribers[cfd].device = NULL;
+ gpsd_wrap(*chp);
/*@i1@*/*chp = NULL; /* modifying observer storage */
(void)write(sfd, "OK\n", 3);
} else