Changeset 4395:fd02b170c292 in roaraudio


Ignore:
Timestamp:
09/26/10 18:24:55 (8 years ago)
Author:
phi
Branch:
default
Message:

some cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r4394 r4395  
    156156 counters_inc(clients, -1); 
    157157 
    158  if (ROAR_CLIENT(g_clients[id])->execed != -1) { 
     158 if (ROAR_CLIENT(cs)->execed != -1) { 
    159159//  return streams_delete(g_clients[id]->execed); 
    160   ROAR_CLIENT(g_clients[id])->execed = -1; 
     160  ROAR_CLIENT(cs)->execed = -1; 
    161161  close_client_fh = 0; 
    162162 } 
    163163 
    164164 for (i = 0; i < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; i++) { 
    165   streams_delete(ROAR_CLIENT(g_clients[id])->streams[i]); 
    166  } 
    167  
    168  if ( ROAR_CLIENT(g_clients[id])->fh != -1 && close_client_fh ) 
    169   close(ROAR_CLIENT(g_clients[id])->fh); 
    170  
    171  roar_nnode_free(&(ROAR_CLIENT(g_clients[id])->nnode)); 
    172  
    173  roar_mm_free(g_clients[id]); 
     165  streams_delete(ROAR_CLIENT(cs)->streams[i]); 
     166 } 
     167 
     168 if ( ROAR_CLIENT(cs)->fh != -1 && close_client_fh ) 
     169  close(ROAR_CLIENT(cs)->fh); 
     170 
     171 roar_nnode_free(&(ROAR_CLIENT(cs)->nnode)); 
     172 
     173 roar_mm_free(cs); 
    174174 g_clients[id] = NULL; 
    175175 
Note: See TracChangeset for help on using the changeset viewer.