harlowja / fasteners

A python package that provides useful locks.
Apache License 2.0
248 stars 45 forks source link

Fix inter process lock multiple aquire attempts on windows #65

Closed psarka closed 3 years ago

psarka commented 3 years ago

This PR resolves https://github.com/harlowja/fasteners/issues/29.

The root of the issue is incorrect lock status update, and this PR removes the lock status tracking altogether. The only place where the lock status was used was a check in release, where it was unnecessary, as we are closing the handle anyway.