FS-7262: #resolve #comment fix regression in native recording using record thread from FS-7083 326289c

This commit is contained in:
Mike Jerris 2015-02-11 10:58:51 -06:00 committed by Brian West
parent 30917dd19c
commit 5afdffb661
1 changed files with 1 additions and 1 deletions

View File

@ -1183,7 +1183,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s
{
const char *var = switch_channel_get_variable(channel, "RECORD_USE_THREAD");
if (zstr(var) || switch_true(var)) {
if (!rh->native && rh->fh && (zstr(var) || switch_true(var))) {
switch_threadattr_t *thd_attr = NULL;
switch_memory_pool_t *pool = switch_core_session_get_pool(session);
int sanity = 200;