Changeset 3925:2132c6399c3d in roaraudio


Ignore:
Timestamp:
06/10/10 12:48:09 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

no need for real fh for client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r3921 r3925  
    572572    streams_set_socktype(stream, ROAR_SOCKET_TYPE_GENSTR); 
    573573   } else { 
    574     fh = streams_get_fh(stream); 
    575574    ROAR_DBG("client_stream_exec(client=%i, stream=%i): fh=%i", client, stream, fh); 
    576     close(g_clients[client]->fh); 
    577     g_clients[client]->fh = fh; 
     575    if ( (fh = g_clients[client]->fh) != -1 ) { 
     576     close(fh); 
     577     g_clients[client]->fh = -1; 
     578    } 
    578579   } 
    579580   ROAR_DBG("client_stream_exec(client=%i, stream=%i) = 0", client, stream); 
Note: See TracChangeset for help on using the changeset viewer.