HaikuDepot: Cause and wait for the package-populator thread to exit on window close.
May help with #17689.
This commit is contained in:
@@ -293,6 +293,9 @@ MainWindow::~MainWindow()
|
|||||||
fShuttingDownWindow->Quit();
|
fShuttingDownWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete_sem(fPackageToPopulateSem);
|
||||||
|
wait_for_thread(fPopulatePackageWorker, NULL);
|
||||||
|
|
||||||
// We must clear the model early to release references.
|
// We must clear the model early to release references.
|
||||||
fModel.Clear();
|
fModel.Clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user