diff --git a/src/driver/streamts.cpp b/src/driver/streamts.cpp index dfd70d8bf..6794358b3 100644 --- a/src/driver/streamts.cpp +++ b/src/driver/streamts.cpp @@ -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); }