Speed up MistInBuffer shutdown time

This commit is contained in:
Thulinma 2021-01-06 15:33:16 +01:00
parent 97b28bebda
commit f862263354
3 changed files with 6 additions and 1 deletions

View file

@ -573,6 +573,7 @@ namespace Mist{
bool inputBuffer::preRun(){
// This function gets run periodically to make sure runtime updates of the config get parsed.
Util::Procs::kill_timeout = 5;
std::string strName = config->getString("streamname");
Util::sanitizeName(strName);
strName = strName.substr(0, (strName.find_first_of("+ ")));