Skip to content

Commit 5bfbce7

Browse files
authored
fix issue with threads hanging on app exit (#8148)
1 parent 1326bfe commit 5bfbce7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/openFrameworks/app/ofMainLoop.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ofMainLoop::ofMainLoop()
3838
}
3939

4040
ofMainLoop::~ofMainLoop() {
41-
exit();
41+
4242
}
4343

4444
std::shared_ptr<ofAppBaseWindow> ofMainLoop::createWindow(const ofWindowSettings & settings){
@@ -128,6 +128,7 @@ int ofMainLoop::loop(){
128128
}else{
129129
windowLoop();
130130
}
131+
exit();
131132
return status;
132133
}
133134

0 commit comments

Comments
 (0)