mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
b server / client
unloading the lib when it contains a ui/sim crashes on windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user