Finalizing the new group manager

This commit is contained in:
WolverinDEV
2021-03-11 14:12:12 +01:00
parent 061ce4c284
commit 5991e5f4ad
46 changed files with 2086 additions and 2711 deletions
+2 -1
View File
@@ -29,8 +29,9 @@ void LocalFileTransfer::shutdown_disk_io() {
{
std::unique_lock qlock{this->disk_io.queue_lock};
this->disk_io.notify_work_awaiting.notify_all();
while(this->disk_io.queue_head)
while(this->disk_io.queue_head) {
this->disk_io.notify_client_processed.wait_for(qlock, std::chrono::seconds{10});
}
if(this->disk_io.queue_head) {
logWarning(0, "Failed to flush disk IO. Force aborting.");