We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5020f commit 5a3acc6Copy full SHA for 5a3acc6
agent/update/src/main/java/me/hsgamer/topper/agent/update/UpdateAgent.java
@@ -125,7 +125,11 @@ public Runnable getSetRunnable() {
125
UpdateStatus updateStatus = entry.getValue();
126
if (updateStatus instanceof UpdateStatus.Skip) {
127
UpdateStatus.Skip skipStatus = (UpdateStatus.Skip) updateStatus;
128
- entry.setValue(skipStatus.decrement());
+ if (skipStatus.skip()) {
129
+ entry.setValue(skipStatus.decrement());
130
+ } else {
131
+ entry.setValue(UpdateStatus.DEFAULT);
132
+ }
133
} else if (updateStatus == UpdateStatus.RESET) {
134
dataEntry.setValue((V) null);
135
entry.setValue(new UpdateStatus.Skip(maxSkips));
0 commit comments