mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
eitd/sectionsd.cpp: fix busywait loop after service stop
This commit is contained in:
@@ -283,6 +283,7 @@ int DMX::getSection(uint8_t *buf, const unsigned timeoutInMSeconds, int &timeout
|
|||||||
lock();
|
lock();
|
||||||
if (!isOpen()) {
|
if (!isOpen()) {
|
||||||
unlock();
|
unlock();
|
||||||
|
timeouts = -1;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -980,6 +980,7 @@ static void commandserviceStopped(int connfd, char * /* data */, const unsigned
|
|||||||
threadCN.unlock();
|
threadCN.unlock();
|
||||||
threadEIT.unlock();
|
threadEIT.unlock();
|
||||||
threadCN.stopUpdate();
|
threadCN.stopUpdate();
|
||||||
|
current_channel_id = 0;
|
||||||
xprintf("[sectionsd] commandserviceStopped done\n");
|
xprintf("[sectionsd] commandserviceStopped done\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user