[xiph-cvs] cvs commit: icecast/src stats.c

Michael Smith msmith at xiph.org
Fri Jun 14 21:54:44 PDT 2002



msmith      02/06/14 21:54:44

  Modified:    src      stats.c
  Log:
  fixed crash in shutdown if startup didn't happen properly.

Revision  Changes    Path
1.13      +3 -0      icecast/src/stats.c

Index: stats.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/stats.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- stats.c	2002/05/03 15:04:56	1.12
+++ stats.c	2002/06/15 04:54:43	1.13
@@ -84,6 +84,9 @@
 {
         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);

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list