9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00

don't use the result when hasn't set waker

This commit is contained in:
hayanesuru
2025-05-25 16:22:10 +09:00
parent ad87353c4a
commit 3e50c4fa8c

View File

@@ -11,6 +11,9 @@ public class Waker {
public boolean state = true;
public final @Nullable Object result() {
if (state) {
return null;
}
Object result = this.result;
this.result = null;
return result;