Fixed a race condition in push handling.

This commit is contained in:
Thulinma 2016-05-19 17:42:02 +02:00
parent 5c4e0d8c54
commit 9b2494f5d6

View file

@ -125,6 +125,7 @@ void Controller::killStatistics(char * data, size_t len, unsigned int id){
///This function is ran whenever a stream becomes active.
void Controller::streamStarted(std::string stream){
tthread::lock_guard<tthread::mutex> guard(Controller::configMutex);
INFO_MSG("Stream %s became active", stream.c_str());
Controller::doAutoPush(stream);
}