Changeset 2540


Ignore:
Timestamp:
Mar 23, 2009 1:18:19 PM (12 years ago)
Author:
nanang
Message:

Ticket #712: back-porting ticket #695

Location:
pjproject/branches/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0

  • pjproject/branches/1.0/pjmedia/src/pjmedia/symbian_sound_aps.cpp

    r2537 r2540  
    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.