Author: mikej Date: Tue Oct 21 23:03:43 2008 New Revision: 10106 Modified: freeswitch/trunk/src/switch_core_session.c Log: don't deref null. Modified: freeswitch/trunk/src/switch_core_session.c ============================================================================== --- freeswitch/trunk/src/switch_core_session.c (original) +++ freeswitch/trunk/src/switch_core_session.c Tue Oct 21 23:03:43 2008 @@ -790,11 +790,12 @@ switch_event_create(&event, SWITCH_EVENT_SESSION_HEARTBEAT); switch_channel_event_set_data(session->channel, event); switch_event_fire(&event); + + /* reschedule this task */ + task->runtime = switch_timestamp(NULL) + session->track_duration; + switch_core_session_rwunlock(session); } - - /* reschedule this task */ - task->runtime = switch_timestamp(NULL) + session->track_duration; } SWITCH_DECLARE(void) switch_core_session_unsched_heartbeat(switch_core_session_t *session)
participants (1)
-
Freeswitch SVN