From dff6962361fb40482c4ba82575a8e773c86988f5 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 10 Jun 2021 21:47:09 +0200 Subject: [PATCH] Tests: PityTest - fsMutex, common lets speed it a little by default --- src/fs_mutex.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs_mutex.cc b/src/fs_mutex.cc index ede8b6d..42e8cb5 100644 --- a/src/fs_mutex.cc +++ b/src/fs_mutex.cc @@ -14,7 +14,7 @@ namespace pEp { } else { std::string mutex_file = mutexpath; while (Utils::path_exists(mutex_file)) { - Utils::sleep_millis(5); + Utils::sleep_millis(2); } std::ofstream msgfile = Utils::file_create(mutexpath); } @@ -29,7 +29,7 @@ namespace pEp { try { Utils::path_delete(mutexpath); // Give others a chance to pickup - Utils::sleep_millis(100); + Utils::sleep_millis(4); } catch (...) { // pEpLogClass("Error releasing fsmutex"); }