mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
fix readepg from sectionsdcontrol
to avoid permanently change of epd_dir, this would break epg read frequently function
This commit is contained in:
@@ -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()");
|
||||
}
|
||||
|
Reference in New Issue
Block a user