mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25: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)
|
||||
prev->next = listener->next;
|
||||
else
|
||||
listener_list = NULL;
|
||||
listener_list = listener->next;
|
||||
|
||||
free(listener);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user