Commit 903abeb2 authored by Michael Smith's avatar Michael Smith

fixed crash in shutdown if startup didn't happen properly.

svn path=/trunk/icecast/; revision=3390
parent 8a4ae84d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment