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:
parent
8a4ae84dce
commit
903abeb2a5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user