Changeset 2220

Show
Ignore:
Timestamp:
08/18/2008 06:07:58 AM (2 years ago)
Author:
bennylp
Message:

Fixed crash in Python when receiving incoming DTMF digits

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/_pjsua.c

    r2164 r2220  
    189189        char digit_str[10]; 
    190190 
    191         ENTER_PYTHON(); 
     191        PyGILState_STATE state = PyGILState_Ensure(); 
    192192 
    193193        pj_ansi_snprintf(digit_str, sizeof(digit_str), "%c", digit); 
     
    201201        ); 
    202202 
    203         LEAVE_PYTHON(); 
     203        PyGILState_Release(state); 
    204204    } 
    205205}