Merge remote-tracking branch 'origin/master'

This commit is contained in:
Yukino Song
2025-01-01 20:05:55 +08:00
11 changed files with 46 additions and 34 deletions

View File

@@ -331,10 +331,10 @@ namespace stream {
std::thread audio_thread;
std::thread control_thread;
asio::io_service io;
asio::io_context io_context;
udp::socket video_sock { io };
udp::socket audio_sock { io };
udp::socket video_sock { io_context };
udp::socket audio_sock { io_context };
control_server_t control_server;
};
@@ -1244,7 +1244,7 @@ namespace stream {
auto &message_queue_queue = ctx.message_queue_queue;
auto broadcast_shutdown_event = mail::man->event<bool>(mail::broadcast_shutdown);
auto &io = ctx.io;
auto &io = ctx.io_context;
udp::endpoint peer;
@@ -1838,7 +1838,7 @@ namespace stream {
audio_packets->stop();
ctx.message_queue_queue->stop();
ctx.io.stop();
ctx.io_context.stop();
ctx.video_sock.close();
ctx.audio_sock.close();