mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -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;
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user