summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-10-16 18:35:05 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-10-16 18:35:05 +0000
commit3eef270c96bb407fde0dbb642206bb4eb63def89 (patch)
treeb56b70bf748af2d0e812da7933b6bba09ba77825 /src
parent8af06144a7a61877c40dc531ece7a201e252ff05 (diff)
Fixed htsserver not dying (immediately) on quit.
Diffstat (limited to 'src')
-rw-r--r--src/htsweb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htsweb.c b/src/htsweb.c
index c189c0a..915cf97 100644
--- a/src/htsweb.c
+++ b/src/htsweb.c
@@ -290,7 +290,7 @@ int main(int argc, char *argv[]) {
/* launch */
ret = help_server(argv[1], defaultPort);
- htsthread_wait();
+ htsthread_wait_n(background_threads - 1);
hts_uninit();
#ifdef _WIN32