Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Issue with lock & unlock #78

Open
ghost opened this issue Oct 13, 2019 · 1 comment
Open

Issue with lock & unlock #78

ghost opened this issue Oct 13, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 13, 2019

Hello,

I notice and issue when calling unlock() first (when it's not yet locked) and then lock(). After that, unlock() has no effect.

Maybe an isLocked() method would help to don't unlock or lock when it's not necessary?

@polataydinn
Copy link

I had the same issue, So i wrote isLocked method manually and now it works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant