fix readepg from sectionsdcontrol

to avoid permanently change of epd_dir, this would break epg read
frequently function


Origin commit data
------------------
Commit: d2ef503028
Author: TangoCash <eric@loxat.de>
Date: 2016-12-26 (Mon, 26 Dec 2016)
This commit is contained in:
TangoCash
2016-12-26 00:31:20 +01:00
committed by vanhofen
parent e74d4b0646
commit 02f848ab9a

View File

@@ -1225,7 +1225,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
writeLockMessaging();
data[dataLength] = '\0';
epg_dir = (std::string)data + "/";
std::string load_epg_dir = (std::string)data + "/";
unlockMessaging();
@@ -1233,7 +1233,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
if (pthread_create (&thrInsert, &attr, insertEventsfromFile, (void *)epg_dir.c_str() ))
if (pthread_create (&thrInsert, &attr, insertEventsfromFile, (void *)load_epg_dir.c_str() ))
{
perror("sectionsd: pthread_create()");
}