mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-23 09:04:45 +00:00
reset handler field on filehandles so it gets cleared on reuse reported by bevenky on irc
This commit is contained in:
parent
1521869750
commit
93e3462c85
@ -135,10 +135,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
|
|||||||
switch_uuid_format(uuid_str, &uuid);
|
switch_uuid_format(uuid_str, &uuid);
|
||||||
|
|
||||||
fh->spool_path = switch_core_sprintf(fh->memory_pool, "%s%s%s.%s", spool_path, SWITCH_PATH_SEPARATOR, uuid_str, ext);
|
fh->spool_path = switch_core_sprintf(fh->memory_pool, "%s%s%s.%s", spool_path, SWITCH_PATH_SEPARATOR, uuid_str, ext);
|
||||||
|
} else {
|
||||||
|
fh->spool_path = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rhs) {
|
if (rhs) {
|
||||||
fh->handler = switch_core_strdup(fh->memory_pool, rhs);
|
fh->handler = switch_core_strdup(fh->memory_pool, rhs);
|
||||||
|
} else {
|
||||||
|
fh->handler = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (channels) {
|
if (channels) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user