don't deref null.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10106 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9b4d80c71e
commit
2f91f7913c
|
@ -790,11 +790,12 @@ SWITCH_STANDARD_SCHED_FUNC(sch_heartbeat_callback)
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue