diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-27 07:55:46 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-27 07:55:46 -0500 |
commit | 2c4665b8e8dceaca30eaee269a5624a70e2666b0 (patch) | |
tree | f949d3655d59cf7573e11663f51a0c880b04a448 /gpsd.c | |
parent | b22062ef2eeb2aeac66854551e4f21df545709aa (diff) | |
download | gpsd-2c4665b8e8dceaca30eaee269a5624a70e2666b0.tar.gz |
Fix tracker bug #17810: ?WATCH filter isn't work[ing].
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1481,7 +1481,7 @@ static void consume_packets(struct gps_device_t *device) /* update all subscribers associated with this device */ for (sub = subscribers; sub < subscribers + MAXSUBSCRIBERS; sub++) { /*@-nullderef@*/ - if (sub == NULL || sub->active == 0) + if (sub == NULL || sub->active == 0 || !subscribed(sub, device)) continue; /* report raw packets to users subscribed to those */ |