Changeset 1494:687defe4fca9 in roaraudio for roard/loop.c


Ignore:
Timestamp:
03/31/09 20:04:32 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test for ROAR_SUPPORT_LISTEN, disable listening socket code if not set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/loop.c

    r1488 r1494  
    5858  ROAR_DBG("main_loop(*): looping..."); 
    5959 
     60#ifdef ROAR_SUPPORT_LISTEN 
    6061  if ( g_listen_socket != -1 ) { 
    6162   ROAR_DBG("main_loop(*): check for new clients..."); 
    6263   net_check_listen(); 
    6364  } 
     65#endif 
    6466 
    6567  ROAR_DBG("main_loop(*): check for new data..."); 
     68#ifdef ROAR_SUPPORT_LISTEN 
    6669  if ( clients_check_all() == 0 && g_terminate && g_listen_socket == -1 ) { 
     70#else 
     71  if ( clients_check_all() == 0 && g_terminate ) { 
     72#endif 
    6773   term  = 1; 
    6874  } 
Note: See TracChangeset for help on using the changeset viewer.