Commit c4d62a22 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix Bug, dont crash when exit app

parent 00b06cf8
...@@ -32,7 +32,7 @@ public: ...@@ -32,7 +32,7 @@ public:
} }
} }
void stop(){run_=false;} void stop(){run_=false;}
~Controller(){run_ = false;thread.join();} ~Controller(){run_ = false;if(thread.joinable())thread.join();}
void runProgramm(std::shared_ptr<ProgramBlock> pb); void runProgramm(std::shared_ptr<ProgramBlock> pb);
void stopProgramm(std::shared_ptr<ProgramBlock> pb); void stopProgramm(std::shared_ptr<ProgramBlock> pb);
void stopProgramm(ProgramBlock* pb); void stopProgramm(ProgramBlock* pb);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment