diff --git a/Info.plist b/Info.plist
deleted file mode 100644
index ccd79bf..0000000
--- a/Info.plist
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
- CFBundleIdentifier
- com.yourcompany.yourappname
-
-
- CFBundleName
- Your App Name
-
-
- CFBundleShortVersionString
- 1.0.0
-
-
- CFBundleVersion
- 1
-
-
- NSMicrophoneUsageDescription
- App requires access to the microphone for audio recording.
-
-
- NSCameraUsageDescription
- App requires access to the camera for video recording.
-
-
- NSCameraUseContinuityCameraDeviceType
- Your usage description here
-
- >
- NSHighResolutionCapable
-
-
-
-
-
\ No newline at end of file
diff --git a/src/single_window/connection_status_window.cpp b/src/single_window/connection_status_window.cpp
index 7405a7c..80b4549 100644
--- a/src/single_window/connection_status_window.cpp
+++ b/src/single_window/connection_status_window.cpp
@@ -3,7 +3,7 @@
#include "rd_log.h"
#include "render.h"
-int Render::ConnectionStatusWindow(
+bool Render::ConnectionStatusWindow(
std::shared_ptr &props) {
if (show_connection_status_window_) {
const ImGuiViewport *viewport = ImGui::GetMainViewport();
@@ -160,7 +160,7 @@ int Render::ConnectionStatusWindow(
show_connection_status_window_ = false;
re_enter_remote_id_ = true;
DestroyPeer(&props->peer_);
- client_properties_.erase(props->remote_id_);
+ return true;
}
}
@@ -175,5 +175,5 @@ int Render::ConnectionStatusWindow(
ImGui::End();
ImGui::PopStyleVar();
}
- return 0;
+ return false;
}
\ No newline at end of file
diff --git a/src/single_window/main_window.cpp b/src/single_window/main_window.cpp
index bf5b145..55475e4 100644
--- a/src/single_window/main_window.cpp
+++ b/src/single_window/main_window.cpp
@@ -29,8 +29,13 @@ int Render::MainWindow() {
RecentConnectionsWindow();
StatusBar();
- for (auto& it : client_properties_) {
- ConnectionStatusWindow(it.second);
+ for (auto it = client_properties_.begin(); it != client_properties_.end();) {
+ auto& props = it->second;
+ if (ConnectionStatusWindow(props)) {
+ it = client_properties_.erase(it);
+ } else {
+ ++it;
+ }
}
return 0;
diff --git a/src/single_window/render.h b/src/single_window/render.h
index d6233c7..7939c87 100644
--- a/src/single_window/render.h
+++ b/src/single_window/render.h
@@ -151,7 +151,8 @@ class Render {
int ControlBar(std::shared_ptr &props);
int AboutWindow();
int StatusBar();
- int ConnectionStatusWindow(std::shared_ptr &props);
+ bool ConnectionStatusWindow(
+ std::shared_ptr &props);
int ShowRecentConnections();
private:
diff --git a/thirdparty/minirtc b/thirdparty/minirtc
index 2f4b928..d1c46d4 160000
--- a/thirdparty/minirtc
+++ b/thirdparty/minirtc
@@ -1 +1 @@
-Subproject commit 2f4b92864975d926de51d2d9c571151b24ad9bdc
+Subproject commit d1c46d401cd857fd9d6613a5c8b11e3a6419105f