mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
Error on removing head element from connection list
This commit is contained in:
parent
491e7f8b57
commit
feda9d5a02
@ -235,7 +235,8 @@ void ws_remove_dispatch_thread(WS_PRIVATE *pwsp, WS_CONNINFO *pwsc) {
|
||||
if(pthread_mutex_lock(&pwsp->exit_mutex))
|
||||
DPRINTF(ERR_FATAL,"Cannot lock condition mutex\n");
|
||||
|
||||
pHead=pTail=pwsp->connlist.next;
|
||||
pTail=&(pwsp->connlist);
|
||||
pHead=pwsp->connlist.next;
|
||||
|
||||
while((pHead) && (pHead->pwsc != pwsc)) {
|
||||
pTail=pHead;
|
||||
|
Loading…
x
Reference in New Issue
Block a user