mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-07 21:32:56 +00:00
Don't remove the old file if the extension changes
Avoids any chance of a race condition removing a file that is about to be played
This commit is contained in:
parent
1b70a706ff
commit
59eaa4c221
@ -2823,7 +2823,6 @@ static switch_status_t locate_url_file(http_file_context_t *context, const char
|
||||
* Update the cache_file path and delete the original file
|
||||
*/
|
||||
ext = newext;
|
||||
unlink(context->cache_file);
|
||||
context->cache_file = switch_core_sprintf(context->pool, "%s.%s", context->cache_file_base, newext);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user