Skip to content

Commit 695428f

Browse files
committed
extend timeout for folder locking on windows
1 parent 413311a commit 695428f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ To install or update LODA, please follow the [installation instructions](https:/
22

33
## [Unreleased]
44

5+
### Bugfixes
6+
7+
* Extend timeout for folder locking on Windows
8+
59
## v22.1.9
610

711
### Bugfixes

src/file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ FolderLock::FolderLock(std::string folder) {
262262
fd = 0;
263263
Log::get().debug("Acquiring lock " + lockfile);
264264
#ifdef _WIN64
265-
for (size_t i = 0; i < 300; i++) { // magic number
265+
for (size_t i = 0; i < 600; i++) { // magic number
266266
fd = CreateFile(lockfile.c_str(), GENERIC_WRITE, 0, 0, CREATE_ALWAYS, 0, 0);
267267
if (fd != INVALID_HANDLE_VALUE) {
268268
break;

0 commit comments

Comments
 (0)