From 2534d1b3ee623c426465903ffa6e84a321b74f88 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 May 2016 20:57:39 +0100 Subject: Clean tmp folder at exit, not instantly --- gentoobrowse-api/service/maintenanceimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentoobrowse-api/service/maintenanceimpl.cpp b/gentoobrowse-api/service/maintenanceimpl.cpp index 2bb43af..8347d07 100644 --- a/gentoobrowse-api/service/maintenanceimpl.cpp +++ b/gentoobrowse-api/service/maintenanceimpl.cpp @@ -189,7 +189,7 @@ namespace Gentoo { Maintenance::refreshPackageTree(const Ice::Current &) { auto tmp = boost::filesystem::temp_directory_path() / "import"; - AdHoc::ScopeExit([&tmp]{ + AdHoc::ScopeExit tidyTmp([&tmp]{ boost::system::error_code ec; boost::filesystem::remove_all(tmp, ec); }); -- cgit v1.2.3