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:
@@ -11,6 +11,9 @@ public class Waker {
|
|||||||
public boolean state = true;
|
public boolean state = true;
|
||||||
|
|
||||||
public final @Nullable Object result() {
|
public final @Nullable Object result() {
|
||||||
|
if (state) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Object result = this.result;
|
Object result = this.result;
|
||||||
this.result = null;
|
this.result = null;
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user