FS-10169: [mod_local_stream] When using local stream commands FreeSWITCH locks up #resolve
This commit is contained in:
parent
79c62475f0
commit
856c87b4cb
|
@ -1431,6 +1431,7 @@ SWITCH_STANDARD_API(local_stream_function)
|
||||||
source->full_reload = 1;
|
source->full_reload = 1;
|
||||||
source->part_reload = 1;
|
source->part_reload = 1;
|
||||||
stream->write_function(stream, "+OK");
|
stream->write_function(stream, "+OK");
|
||||||
|
switch_thread_rwlock_unlock(source->rwlock);
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "-ERR Cannot locate local_stream %s!\n", local_stream_name);
|
stream->write_function(stream, "-ERR Cannot locate local_stream %s!\n", local_stream_name);
|
||||||
}
|
}
|
||||||
|
@ -1438,6 +1439,7 @@ SWITCH_STANDARD_API(local_stream_function)
|
||||||
if ((source = get_source(local_stream_name))) {
|
if ((source = get_source(local_stream_name))) {
|
||||||
source->stopped = 0;
|
source->stopped = 0;
|
||||||
stream->write_function(stream, "+OK stream: %s", source->name);
|
stream->write_function(stream, "+OK stream: %s", source->name);
|
||||||
|
switch_thread_rwlock_unlock(source->rwlock);
|
||||||
} else {
|
} else {
|
||||||
if ((ok = launch_streams(local_stream_name))) {
|
if ((ok = launch_streams(local_stream_name))) {
|
||||||
stream->write_function(stream, "+OK stream: %s", local_stream_name);
|
stream->write_function(stream, "+OK stream: %s", local_stream_name);
|
||||||
|
|
Loading…
Reference in New Issue