0
0
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:
Jess Mayo 2015-07-08 13:12:47 +09:00
parent 39261b8da6
commit 9f0abd69d1

View File

@ -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) {