Changeset 3825:0a66c056ac51 in roaraudio
- Timestamp:
- 05/11/10 18:06:09 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/clients.c
r3820 r3825 458 458 case ROAR_PROTO_RSOUND: 459 459 rv = emul_rsound_check_client(id, NULL); 460 if ( rv == 0 ) { // loop as long as we don't get an error. 461 while (rv == 0) 462 rv = emul_rsound_check_client(id, NULL); 463 rv = 0; // restore 464 } else { // in case of error delete the client 465 rv = clients_delete(id); 466 } 460 467 break; 461 468 #endif -
roard/emul_rsound.c
r3824 r3825 39 39 char c[16]; 40 40 } buf; 41 42 // TODO: add error handling 43 roar_socket_nonblock(fh, ROAR_SOCKET_NONBLOCK); 41 44 42 45 if ( emul_rsound_lastcon == -1 ) { … … 212 215 } 213 216 217 // we get called in a loop, in case this fails no problem, just 218 // return -1, caller will delete us in case of real error. 214 219 if ( emul_rsound_vrecv_msg(&msg, vio) == -1 ) 215 return clients_delete(client);220 return -1; 216 221 217 222 if ( !strncmp(msg.datasp, "INFO", 4) ) { … … 246 251 } else if ( !strncmp(msg.datasp, "NULL", 4) ) { 247 252 // NULL is simular to NOOP 248 return 0;249 253 } else if ( !strncmp(msg.datasp, "STOP", 4) ) { 250 254 // This is quit. … … 253 257 return clients_delete(client); 254 258 } 259 260 return 0; 255 261 } 256 262 #endif
Note: See TracChangeset
for help on using the changeset viewer.