Skip to content

Commit

Permalink
fix issue with threads hanging on app exit (#8148)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo authored Oct 23, 2024
1 parent 1326bfe commit 5bfbce7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/openFrameworks/app/ofMainLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ofMainLoop::ofMainLoop()
}

ofMainLoop::~ofMainLoop() {
exit();

}

std::shared_ptr<ofAppBaseWindow> ofMainLoop::createWindow(const ofWindowSettings & settings){
Expand Down Expand Up @@ -128,6 +128,7 @@ int ofMainLoop::loop(){
}else{
windowLoop();
}
exit();
return status;
}

Expand Down

0 comments on commit 5bfbce7

Please sign in to comment.