mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
FS-11785 [mod_format_cdr, mod_local_stream] fix dead assignment
This commit is contained in:
parent
91d07accee
commit
7d0523f084
@ -292,7 +292,6 @@ static switch_status_t my_on_reporting_cb(switch_core_session_t *session, cdr_pr
|
||||
}
|
||||
wrote++;
|
||||
close(fd);
|
||||
fd = -1;
|
||||
} else {
|
||||
char ebuf[512] = { 0 };
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing [%s][%s]\n",
|
||||
@ -462,7 +461,6 @@ static switch_status_t my_on_reporting_cb(switch_core_session_t *session, cdr_pr
|
||||
}
|
||||
wrote++;
|
||||
close(fd);
|
||||
fd = -1;
|
||||
} else {
|
||||
char ebuf[512] = { 0 };
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error![%s]\n",
|
||||
|
@ -496,7 +496,6 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
||||
if (source->hup) {
|
||||
source->hup = 0;
|
||||
if (is_open) {
|
||||
is_open = 0;
|
||||
|
||||
switch_core_file_close(use_fh);
|
||||
flush_video_queue(source->video_q);
|
||||
@ -560,7 +559,6 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
||||
|
||||
if (use_fh == &source->chime_fh) {
|
||||
source->chime_counter = source->rate * source->chime_freq;
|
||||
use_fh = &fh;
|
||||
} else {
|
||||
is_open = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user