diff options
Diffstat (limited to 'snowcast_server_concurrent.c')
-rw-r--r-- | snowcast_server_concurrent.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/snowcast_server_concurrent.c b/snowcast_server_concurrent.c index 47b112a..d0e6aa5 100644 --- a/snowcast_server_concurrent.c +++ b/snowcast_server_concurrent.c @@ -112,6 +112,10 @@ int main(int argc, char *argv[]) pthread_t s_thread; pthread_create(&s_thread, NULL, select_thread, NULL); + // start syncchronization thread to broadcast stations + pthread_t sync_thread; +pthread_create(&sync_thread, NULL, synchronization_thread, NULL); + // command line interface char input[LINE_MAX]; while (1) { @@ -129,9 +133,6 @@ int main(int argc, char *argv[]) print_user_data(i); } } else if (strncmp("s\n", input, LINE_MAX) == 0) { - // start the streaming threads - pthread_t sync_thread; - pthread_create(&sync_thread, NULL, synchronization_thread, NULL); } } |