From 9b2494f5d61603eb584b5c53b7c80563ded8bd4d Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 19 May 2016 17:42:02 +0200 Subject: [PATCH] Fixed a race condition in push handling. --- src/controller/controller_statistics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller/controller_statistics.cpp b/src/controller/controller_statistics.cpp index b26ac066..07f00762 100644 --- a/src/controller/controller_statistics.cpp +++ b/src/controller/controller_statistics.cpp @@ -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 guard(Controller::configMutex); INFO_MSG("Stream %s became active", stream.c_str()); Controller::doAutoPush(stream); }