1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Cleanup: Updated usage of global.running to be more clear

This commit is contained in:
Philipp Schafft 2016-12-07 18:42:54 +00:00
parent cc931660b9
commit 59e5a48776
2 changed files with 4 additions and 3 deletions

View File

@ -38,7 +38,7 @@ void global_initialize(void)
global.server_sockets = 0;
global.relays = NULL;
global.master_relays = NULL;
global.running = 0;
global.running = ICECAST_BOOTING;
global.clients = 0;
global.sources = 0;
global.source_tree = avl_tree_new(source_compare_sources, NULL);

View File

@ -15,8 +15,9 @@
#define ICECAST_LISTEN_QUEUE 5
#define ICECAST_RUNNING 1
#define ICECAST_HALTING 2
#define ICECAST_BOOTING 0 /* Still booting */
#define ICECAST_RUNNING 1 /* Up and running */
#define ICECAST_HALTING 2 /* Shutting down */
#define ICECAST_VERSION_STRING "Icecast " PACKAGE_VERSION