Start and stop radio invitation service with chat lifecycle
This commit is contained in:
1 parent
b0fe2d66af
commit
849f1c8618
2 files changed
+7
-1
No files matched your search
@@ -214,6 +214,8 @@ utun_CORE_SOURCES = \
|
||||
call/call_priv.h \
|
||||
call/call_headless.c \
|
||||
radio/radio.c \
|
||||
radio/radio_call.c \
|
||||
radio/radio_call.h \
|
||||
radio/radio_headless.c \
|
||||
broadcast.c
|
||||
|
||||
@@ -392,6 +394,8 @@ libutun_a_SOURCES = \
|
||||
call/call_priv.h \
|
||||
call/call_headless.c \
|
||||
radio/radio.c \
|
||||
radio/radio_call.c \
|
||||
radio/radio_call.h \
|
||||
radio/radio_headless.c \
|
||||
broadcast.c
|
||||
libutun_a_CFLAGS = $(utun_CFLAGS)
|
||||
|
||||
+3
-1
@@ -30,6 +30,7 @@
|
||||
#include "call/call_headless.h"
|
||||
#include "broadcast.h"
|
||||
#include "radio/radio.h"
|
||||
#include "radio/radio_call.h"
|
||||
#include "radio/radio_headless.h"
|
||||
#include "stcp_server.h"
|
||||
#include "transport_layer/reality_relay.h"
|
||||
@@ -797,7 +798,7 @@ int chat_service_start(struct UTUN_INSTANCE* instance) {
|
||||
if (!instance->media_async || media_delivery_init(instance) < 0) goto fail;
|
||||
if (chat_attachment_init(instance) < 0) goto fail;
|
||||
if (member_files_init(instance) < 0 || dm_mailbox_init(instance) < 0 || dm_core_init(instance) < 0 ||
|
||||
dm_media_init(instance) < 0 || call_init(instance) < 0) goto fail;
|
||||
dm_media_init(instance) < 0 || call_init(instance) < 0 || radio_call_init(instance) < 0) goto fail;
|
||||
chat_media_backfill(instance);
|
||||
chat_media_startup_backfill_init(instance);
|
||||
// Initialize headless chat control if configured in [chatserver]
|
||||
@@ -855,6 +856,7 @@ void chat_service_stop(struct UTUN_INSTANCE* instance) {
|
||||
if (!instance) return;
|
||||
instance->chat_started = 0;
|
||||
chat_local_stop(instance);
|
||||
radio_call_destroy(instance);
|
||||
chat_headless_control_destroy(instance);
|
||||
call_headless_destroy(instance); radio_headless_destroy(instance);
|
||||
stream_service_destroy(instance);
|
||||
|
||||
Reference in new issue
Block a user