frame-watch: Actually unregister removed groups

Actually close the sockets for removed groups an free resources
This commit is contained in:
Andrew Zaborowski 2020-02-04 12:23:04 +01:00 committed by Denis Kenzior
parent c4b2f10483
commit 1df4cb5be7
1 changed files with 3 additions and 1 deletions

View File

@ -362,8 +362,10 @@ static bool frame_watch_group_remove_wdev(void *data, void *user_data)
struct watch_group *group = data;
const uint64_t *wdev_id = user_data;
if (group->wdev_id == *wdev_id)
if (group->wdev_id == *wdev_id) {
frame_watch_group_destroy(group);
return true;
}
if (group->id != 0)
return false;