Changeset 2443 for pjproject


Ignore:
Timestamp:
Feb 6, 2009 12:14:15 PM (16 years ago)
Author:
nanang
Message:

Ticket #695: Inserted wait loop between stop() & close() of APS client session to allow 'APS server' performs clean stop (it is APS server who suffers panic KERN-EXEC 0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/symbian_sound_aps.cpp

    r2432 r2443  
    368368    iRecCommHandler = NULL; 
    369369 
     370    // On some devices, immediate closing after stopping may cause APS server 
     371    // panic KERN-EXEC 0, so let's wait for sometime before really closing 
     372    // the client session. 
     373    TTime start, now; 
     374    enum { APS_CLOSE_WAIT_TIME = 200 }; /* in msecs */ 
     375     
     376    start.UniversalTime(); 
     377    do { 
     378        pj_symbianos_poll(-1, APS_CLOSE_WAIT_TIME); 
     379        now.UniversalTime(); 
     380    } while (now.MicroSecondsFrom(start) < APS_CLOSE_WAIT_TIME * 1000); 
     381     
    370382    iSession.Close(); 
    371383 
Note: See TracChangeset for help on using the changeset viewer.