mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 01:40:15 +00:00
Control socked: fixed deletion from linked-list
This commit is contained in:
@@ -649,8 +649,10 @@ static void * control_thread(void *args)
|
||||
CLOSESOCKET(cur->fd);
|
||||
if(cur->prev) {
|
||||
cur->prev->next = cur->next;
|
||||
cur->next->prev = cur->prev;
|
||||
} else {
|
||||
clients = cur->next;
|
||||
clients->prev = NULL;
|
||||
}
|
||||
next = cur->next;
|
||||
free(cur);
|
||||
|
||||
Reference in New Issue
Block a user