fix: SIG SEGV when ECoS failed to connect

see #150
Dieser Commit ist enthalten in:
Reinder Feenstra 2024-07-08 22:58:19 +02:00
Ursprung 89c1bc9ffb
Commit e6cc388aa9

Datei anzeigen

@ -184,7 +184,7 @@ void Kernel::stop(Simulation* simulation)
m_thread.join(); m_thread.join();
if(simulation) // get simulation data if(simulation && !m_objects.empty()) // get simulation data
{ {
simulation->clear(); simulation->clear();