Changeset 136:eb682807f6a4 in roaraudio


Ignore:
Timestamp:
07/14/08 04:47:47 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed another case a client gets deleted while we are checking it's streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r84 r136  
    177177  for (j = 0; j < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; j++) { 
    178178   //printf("D: client=%i, stream=%i, g_clients[i=%i] = %p\n", i, j, i, g_clients[i]); 
     179   if ( g_clients[i] == NULL ) // streams_check() bellow can delete our client (why?) 
     180    break; 
    179181   if ( (fh = streams_get_fh(g_clients[i]->streams[j])) != -1 ) { 
    180182    if ( FD_ISSET(fh, &r) ) { 
Note: See TracChangeset for help on using the changeset viewer.