[fix] do not show stream window if the client is only in server mode

This commit is contained in:
dijunkun
2025-04-10 17:19:19 +08:00
parent fcd0488624
commit 5351b4da0e
2 changed files with 3 additions and 2 deletions

View File

@@ -311,7 +311,8 @@ void Render::OnConnectionStatusCb(ConnectionStatus status, const char *user_id,
if (ConnectionStatus::Connecting == status) { if (ConnectionStatus::Connecting == status) {
} else if (ConnectionStatus::Gathering == status) { } else if (ConnectionStatus::Gathering == status) {
} else if (ConnectionStatus::Connected == status) { } else if (ConnectionStatus::Connected == status) {
if (!render->need_to_create_stream_window_) { if (!render->need_to_create_stream_window_ &&
!render->client_properties_.empty()) {
render->need_to_create_stream_window_ = true; render->need_to_create_stream_window_ = true;
} }