Skip to content

Commit

Permalink
Merge pull request #2576 from CounterpartyXCP/fixlock
Browse files Browse the repository at this point in the history
Fix Lock File Not Found Error
  • Loading branch information
ouziel-slama authored Oct 24, 2024
2 parents d1a97c3 + e4d8cf1 commit abf64c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def release_lockfile(self):
if not self.lockfile.closed:
fcntl.flock(self.lockfile, fcntl.LOCK_UN)
self.lockfile.close()
os.remove(self.lockfile_path)
logger.debug("RSFetcher - Lockfile released.")
else:
logger.debug("RSFetcher - Lockfile was already closed.")
os.remove(self.lockfile_path)

def start(self, start_height=0):
logger.info("Starting RSFetcher thread...")
Expand Down
1 change: 1 addition & 0 deletions release-notes/release-notes-v10.5.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Backwards-incompatible change

## Codebase

- Use lock file to ensure only one running RSFetcher

## API

Expand Down

0 comments on commit abf64c2

Please sign in to comment.