mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
fix readepg from sectionsdcontrol :supplement to d2ef503028
new try
This commit is contained in:
@@ -1225,7 +1225,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
|
|||||||
|
|
||||||
writeLockMessaging();
|
writeLockMessaging();
|
||||||
data[dataLength] = '\0';
|
data[dataLength] = '\0';
|
||||||
epg_dir = (std::string)data + "/";
|
static std::string epg_dir_tmp = (std::string)data + "/";
|
||||||
unlockMessaging();
|
unlockMessaging();
|
||||||
|
|
||||||
|
|
||||||
@@ -1233,7 +1233,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng
|
|||||||
pthread_attr_init(&attr);
|
pthread_attr_init(&attr);
|
||||||
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
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 *)epg_dir_tmp.c_str() ))
|
||||||
{
|
{
|
||||||
perror("sectionsd: pthread_create()");
|
perror("sectionsd: pthread_create()");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user