Changeset 799:ff4c12152444 in roaraudio for libroaryiff


Ignore:
Timestamp:
09/17/08 04:04:17 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

got away with the bad noop-ping stuff by testing for roar_errno in YGetNextEvent()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaryiff/events.c

    r795 r799  
    3030 struct roar_connection rcon; 
    3131 struct roar_stream s; 
    32  struct roar_message    m; 
    3332 
    3433 if ( con == NULL || event == NULL ) 
     
    4039  if ( roar_get_stream(&rcon, &s, ROARYIFF_YID2ROAR(con->prev_generated_yid)) == -1 ) { 
    4140   // ok, we know something happened. 
    42    // next we try to seend a noop to see of the server is still alive 
    43    m.cmd = ROAR_CMD_NOOP; 
    44    m.datalen = 0; 
    45  
    46    if (  roar_req(&rcon, &m, NULL) == -1 ) { 
     41   if ( roar_errno == ROAR_ERROR_PROTO ) { 
    4742    // the server died 
    4843    event->type     = YDisconnect; 
Note: See TracChangeset for help on using the changeset viewer.