b server / client

unloading the lib when it contains a ui/sim crashes on windows
This commit is contained in:
2026-02-14 14:32:50 +01:00
parent 8449b6091e
commit b493129184
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -66,8 +66,12 @@ Simulators::Simulators(uint16_t port, QStringList can_devs, QStringList uart_dev
continue;
}
auto widget = loaded_sim(m_com, this);
if (widget == nullptr)
{
lib.unload();
continue;
}
m_simulators.insert(std::make_pair(widget->name(), widget));
lib.unload();
}
// Insert Debug sims here