mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
obs-outputs: Fix crash with quit while connecting
We need to stop the stream even if it hasn't finished opening yet, to make sure threads are cleaned up properly.
This commit is contained in:
parent
39261b8da6
commit
9f0abd69d1
@ -98,7 +98,7 @@ static void rtmp_stream_destroy(void *data)
|
||||
{
|
||||
struct rtmp_stream *stream = data;
|
||||
|
||||
if (stream->active)
|
||||
if (stream->connecting || stream->active)
|
||||
rtmp_stream_stop(data);
|
||||
|
||||
if (stream) {
|
||||
|
Loading…
Reference in New Issue
Block a user