mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[listener] Fix #205 where listener_remove could break the linked list and orphan some cb's
This commit is contained in:
parent
6e58af75cf
commit
e8ea00896d
@ -73,7 +73,7 @@ listener_remove(notify notify_cb)
|
|||||||
if (prev)
|
if (prev)
|
||||||
prev->next = listener->next;
|
prev->next = listener->next;
|
||||||
else
|
else
|
||||||
listener_list = NULL;
|
listener_list = listener->next;
|
||||||
|
|
||||||
free(listener);
|
free(listener);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user