debug closeModules

This commit is contained in:
2025-03-14 22:45:44 -05:00
parent 0164c87481
commit f503c3589e

View File

@@ -90,10 +90,10 @@ void App::unload(decltype(Module::self) it) {
} }
void App::closeModules() { void App::closeModules() {
for(auto it = toClose.begin(); it != toClose.end(); it++) { for(auto h : toClose) {
dlclose(*it); dlclose(h);
it = toClose.erase(it);
} }
toClose.clear();
} }
void App::handleArgs(const int& argc, char* argv[]) { void App::handleArgs(const int& argc, char* argv[]) {