1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

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

svn path=/trunk/icecast/; revision=3390
This commit is contained in:
Michael Smith 2002-06-15 04:54:43 +00:00
parent 8a4ae84dce
commit 903abeb2a5

View File

@ -84,6 +84,9 @@ void stats_shutdown()
{ {
int n; int n;
if(!_stats_running) /* We can't shutdown if we're not running. */
return;
/* wait for thread to exit */ /* wait for thread to exit */
_stats_running = 0; _stats_running = 0;
thread_join(_stats_thread_id); thread_join(_stats_thread_id);