mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 02:04:54 +00:00
FS-10169: [mod_local_stream] When using local stream commands FreeSWITCH locks up #resolve
This commit is contained in:
parent
9844d1887b
commit
0cd652222f
@ -1343,6 +1343,7 @@ SWITCH_STANDARD_API(local_stream_function)
|
||||
source->full_reload = 1;
|
||||
source->part_reload = 1;
|
||||
stream->write_function(stream, "+OK");
|
||||
switch_thread_rwlock_unlock(source->rwlock);
|
||||
} else {
|
||||
stream->write_function(stream, "-ERR Cannot locate local_stream %s!\n", local_stream_name);
|
||||
}
|
||||
@ -1350,6 +1351,7 @@ SWITCH_STANDARD_API(local_stream_function)
|
||||
if ((source = get_source(local_stream_name))) {
|
||||
source->stopped = 0;
|
||||
stream->write_function(stream, "+OK stream: %s", source->name);
|
||||
switch_thread_rwlock_unlock(source->rwlock);
|
||||
} else {
|
||||
if ((ok = launch_streams(local_stream_name))) {
|
||||
stream->write_function(stream, "+OK stream: %s", local_stream_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user