From 6c43f26d17f2562ddb3bb4333c73b79bf6032f7a Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Mon, 27 Feb 2012 18:53:08 +0000 Subject: [PATCH] [PATCH] streamts: speed up shutdown From: Stefan Seyfried Date: Sun, 12 Feb 2012 22:16:29 +0100 git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2129 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/bbb1ec8e3cfd3292d88549de34f463cbfb7d9786 Author: gixxpunk Date: 2012-02-27 (Mon, 27 Feb 2012) --- 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); }