refactor: separate out networking infra

(cherry picked from commit 1cac04eae8)
This commit is contained in:
peachismomo
2026-10-06 20:05:37 +08:00
committed by Ian Chua
parent e45f5846b2
commit 92b3068cf6
7 changed files with 28 additions and 113 deletions
+1 -4
View File
@@ -297,10 +297,7 @@ void MonitorPanel::select_machine(std::string machine_sn)
void MonitorPanel::on_timer(wxTimerEvent& event)
{
// MediaPlayCtrl may yield the event loop while it joins its camera worker
// during window teardown. Do not let a queued monitor refresh touch panels
// that are already being destroyed.
if (!wxGetApp().is_closing() && update_flag) {
if (update_flag) {
update_all();
//Layout();
}