From bbe59f6405188d203f81f79c458f7b54d2235311 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 12 Feb 2012 22:16:29 +0100 Subject: [PATCH] streamts: speed up shutdown Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/ef4d9e95dfc8917cf5c626479a3e0738d61acfe1 Author: Stefan Seyfried Date: 2012-02-12 (Sun, 12 Feb 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/streamts.cpp | 1 + 1 file changed, 1 insertion(+) 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); }