neutrino: speed up shutdown

streamts and sectionsd can take some time to shutdown, so trigger
them first

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@138 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2010-01-03 14:48:36 +00:00
parent c29932f0b8
commit 19d0d38daa

View File

@@ -4429,6 +4429,8 @@ bool CNeutrinoApp::changeNotify(const neutrino_locale_t OptionName, void */*data
**************************************************************************************/
void stop_daemons(bool stopall)
{
streamts_stop = 1;
sectionsd_stop = 1;
dvbsub_close();
tuxtxt_stop();
tuxtxt_close();
@@ -4437,9 +4439,7 @@ void stop_daemons(bool stopall)
pthread_cancel(nhttpd_thread);
pthread_join(nhttpd_thread, NULL);
printf("httpd shutdown done\n");
streamts_stop = 1;
pthread_join(stream_thread, NULL);
sectionsd_stop = 1;
if(stopall) {
printf("timerd shutdown\n");
g_Timerd->shutdown();