Skip to content

Commit

Permalink
Merge pull request #366 from kov/fix-timeouts-leak
Browse files Browse the repository at this point in the history
Do not disable timeout cleanup on watch cleanup
  • Loading branch information
pemensik committed Apr 20, 2023
2 parents 38d3de9 + b3ad387 commit 2e905e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avahi-common/simple-watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void cleanup_watches(AvahiSimplePoll *s, int all) {
destroy_watch(w);
}

s->timeout_req_cleanup = 0;
s->watch_req_cleanup = 0;
}

static AvahiTimeout* timeout_new(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata) {
Expand Down

0 comments on commit 2e905e9

Please sign in to comment.