streamts: speed up shutdown

This commit is contained in:
Stefan Seyfried
2012-02-12 22:16:29 +01:00
parent 7e6a49e8b8
commit ef4d9e95df

View File

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