streamts: speed up shutdown

Origin commit data
------------------
Branch: ni/coolstream
Commit: ef4d9e95df
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-12 (Sun, 12 Feb 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-02-12 22:16:29 +01:00
parent 0e49d4129c
commit bbe59f6405

View File

@@ -247,6 +247,7 @@ void streamts_main_thread(void * /*data*/)
if(st != 0) { if(st != 0) {
printf("Stopping stream thread\n"); printf("Stopping stream thread\n");
exit_flag = 1; exit_flag = 1;
pthread_cancel(st);
pthread_join(st, NULL); pthread_join(st, NULL);
close(connfd); close(connfd);
} }