mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
streamts: speed up shutdown
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user