This fixes the issue when an output cancels reconnecting, reconnect is left at true, causing obs_output_active to always return true even though reconnecting has actually been canceled.
@@ -1349,6 +1349,8 @@ static void *reconnect_thread(void *param)
if (os_event_try(output->reconnect_stop_event) == EAGAIN)
pthread_detach(output->reconnect_thread);
+ else
+ output->reconnecting = false;
output->reconnect_thread_active = false;
return NULL;