Changeset 1155:556400bd73cd in roaraudio for roard


Ignore:
Timestamp:
01/22/09 15:19:25 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

save if we are in no-listen mode and allow new streams while in tmerinating satte if we are in no-listen mode.

Location:
roard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roard/include/roard.h

    r920 r1155  
    5959 
    6060int alive; 
     61int g_no_listen; 
    6162 
    6263uint32_t g_pos; // current possition in output stream 
  • roard/roard.c

    r1145 r1155  
    265265 g_autostandby   =  0; 
    266266 alive           =  1; 
     267 g_no_listen     =  0; 
    267268 
    268269 sa.bits     = ROAR_BITS_DEFAULT; 
     
    456457   *server     = 0; 
    457458   g_terminate = 1; 
     459   g_no_listen = 1; 
    458460  } else if ( strcmp(k, "--client-fh") == 0 ) { 
    459461   if ( clients_set_fh(clients_new(), atoi(argv[++i])) == -1 ) { 
  • roard/streams.c

    r1152 r1155  
    5252 struct roar_stream_server * s = NULL; 
    5353 
    54  if ( g_terminate ) // don't accept new streams in case of termination state 
     54 if ( g_terminate && !g_no_listen ) // don't accept new streams in case of termination state 
    5555  return -1; 
    5656 
Note: See TracChangeset for help on using the changeset viewer.