Fix SRT input shutdown issues

This commit is contained in:
Thulinma 2024-07-04 18:48:14 +02:00
parent 46bb6a0fa5
commit 456fd2d555
2 changed files with 1 additions and 4 deletions

View file

@ -591,7 +591,6 @@ void Util::Config::signal_handler(int signum, siginfo_t *sigInfo, void *ignore){
case SIGTERM:
if (!mutabort || mutabort->try_lock()){
if (serv_sock_pointer){serv_sock_pointer->close();}
if (stdin){fclose(stdin);}
if (mutabort){mutabort->unlock();}
}
#if DEBUG >= DLVL_DEVEL

View file

@ -3,9 +3,6 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <mist/defines.h>
#include <mist/downloader.h>
#include <mist/flv_tag.h>
@ -308,6 +305,7 @@ namespace Mist{
// If we are here: we have a proper connection (either accepted or pull input) and should start parsing it as such
Input::streamMainLoop();
srtConn.close();
Socket::SRT::libraryCleanup();
}
bool InputTSSRT::needsLock(){return false;}