Changeset 2530:921f7ac0be31 in roaraudio for roard/loop.c
- Timestamp:
- 09/02/09 00:50:34 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/loop.c
r2500 r2530 34 34 float freq; 35 35 #endif 36 #ifdef ROAR_SUPPORT_LISTEN 37 int i; 38 int have_listen; 39 #endif 36 40 #ifdef MONITOR_LATENCY 37 41 long int ans_1last = 0, ans_2last = 0, ans_3last = 0; … … 59 63 60 64 #ifdef ROAR_SUPPORT_LISTEN 61 if ( g_listen_socket != -1 ) { 65 have_listen = 0; 66 for (i = 0; i < ROAR_MAX_LISTEN_SOCKETS; i++) { 67 if ( g_listen_socket[i] != -1 ) { 68 have_listen = 1; 69 break; 70 } 71 } 72 73 if ( have_listen ) { 62 74 ROAR_DBG("main_loop(*): check for new clients..."); 63 75 net_check_listen(); … … 67 79 ROAR_DBG("main_loop(*): check for new data..."); 68 80 #ifdef ROAR_SUPPORT_LISTEN 69 if ( clients_check_all() == 0 && g_terminate && g_listen_socket == -1) {81 if ( clients_check_all() == 0 && g_terminate && !have_listen ) { 70 82 #else 71 83 if ( clients_check_all() == 0 && g_terminate ) {
Note: See TracChangeset
for help on using the changeset viewer.