Changeset 5841:684c2d39f82e in roaraudio for libroar/basic.c


Ignore:
Timestamp:
01/07/13 03:11:34 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to terminate a server on QUIT as needed for #337

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r5840 r5841  
    607607  return 0; 
    608608 
     609 if ( con->flags & ROAR_CON_FLAGS_TERMINATE ) { 
     610  if ( roar_terminate(con, 1) == -1 ) { 
     611   ROAR_WARN("roar_connectionunref(con=%p{.server_name='%s'}): Can not terminate server as requested.", con, con->server_name); 
     612  } 
     613 } 
     614 
    609615 memset(&m, 0, sizeof(m)); 
    610616 
Note: See TracChangeset for help on using the changeset viewer.