Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JedisReentrantLock 的 unsubscribe 未對 isListener 作回復 #3

Open
brianlin2019 opened this issue Aug 20, 2021 · 0 comments
Open

Comments

@brianlin2019
Copy link

在 JedisReentrantLock.java 中,private void subscribe() {...}方法內有設定 isListener = true;,但在 private void unsubscribe() {...} 未將該旗標作復歸isListener = false;
這應該會造成第二次呼叫 subscribe() 會無法進入 if(!isListener ){...} 區塊。

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

No branches or pull requests

1 participant