Changeset 3928:6e8e191af6a7 in roaraudio


Ignore:
Timestamp:
06/10/10 13:56:35 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed exec of ready stream bug :)

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r3927 r3928  
    472472 
    473473    roar_send_message(&con, &m, NULL); 
     474 
     475    if ( flags[1] & COMMAND_FLAG_OUT_CLOSECON ) 
     476     clients_close(id, 1); 
     477 
    474478   break; 
    475479#ifndef ROAR_WITHOUT_DCOMP_EMUL_ESD 
  • roard/req.c

    r3926 r3928  
    235235 ROAR_DBG("req_on_exec_stream(client=%i, mes={stream=%i,...},...): execing stream", client, mes->stream); 
    236236 
    237  if ( (r = client_stream_exec(client, mes->stream)) == -1 ) 
    238   return -1; 
     237 
     238 if ( streams_is_ready(mes->stream) ) { 
     239  flags[1] |= COMMAND_FLAG_OUT_CLOSECON; 
     240 } else { 
     241  if ( (r = client_stream_exec(client, mes->stream)) == -1 ) 
     242   return -1; 
     243 } 
    239244 
    240245 ROAR_DBG("req_on_exec_stream(client=%i, mes={stream=%i,...},...): returning (OK)...", client, mes->stream); 
Note: See TracChangeset for help on using the changeset viewer.