From 903abeb2a55d39c49fa1ce468d731add6482a08e Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 15 Jun 2002 04:54:43 +0000 Subject: [PATCH] fixed crash in shutdown if startup didn't happen properly. svn path=/trunk/icecast/; revision=3390 --- src/stats.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stats.c b/src/stats.c index 54408123..393d614f 100644 --- a/src/stats.c +++ b/src/stats.c @@ -84,6 +84,9 @@ void stats_shutdown() { int n; + if(!_stats_running) /* We can't shutdown if we're not running. */ + return; + /* wait for thread to exit */ _stats_running = 0; thread_join(_stats_thread_id);