projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
π¨ Update current edition of rescuer after fetch
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
SoneRescuer.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/SoneRescuer.java
b/src/main/java/net/pterodactylus/sone/core/SoneRescuer.java
index
93c77c2
..
adc0925
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/SoneRescuer.java
+++ b/
src/main/java/net/pterodactylus/sone/core/SoneRescuer.java
@@
-108,17
+108,6
@@
public class SoneRescuer extends AbstractService {
}
/**
}
/**
- * Sets the edition to rescue.
- *
- * @param edition
- * The edition to rescue
- * @return This Sone rescuer
- */
- public void setEdition(long edition) {
- currentEdition = edition;
- }
-
- /**
* Sets whether the last fetch was successful.
*
* @return {@code true} if the last fetch was successful, {@code false}
* Sets whether the last fetch was successful.
*
* @return {@code true} if the last fetch was successful, {@code false}
@@
-134,9
+123,7
@@
public class SoneRescuer extends AbstractService {
//
/**
//
/**
- * Starts the next fetch. If you want to fetch a different edition than βthe
- * next older one,β remember to call {@link #setEdition(long)} before
- * calling this method.
+ * Starts the next fetch.
*/
public void startNextFetch() {
fetching = true;
*/
public void startNextFetch() {
fetching = true;
@@
-165,6
+152,7
@@
public class SoneRescuer extends AbstractService {
lastFetchSuccessful = (fetchedSone != null);
if (lastFetchSuccessful) {
core.updateSone(fetchedSone, true);
lastFetchSuccessful = (fetchedSone != null);
if (lastFetchSuccessful) {
core.updateSone(fetchedSone, true);
+ currentEdition = getNextEdition();
}
fetching = false;
}
}
fetching = false;
}