mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-11-20 21:06:32 +00:00
fix fetching duplication
This commit is contained in:
parent
bf9dcacd40
commit
e32002fac8
1 changed files with 7 additions and 5 deletions
|
|
@ -17,11 +17,13 @@ public class PostFetcher {
|
|||
}
|
||||
|
||||
public void fetch() {
|
||||
fetching = true;
|
||||
postFetchService.fetch(result -> {
|
||||
fetching = false;
|
||||
fetchListener.onResult(result);
|
||||
});
|
||||
if (!fetching) {
|
||||
fetching = true;
|
||||
postFetchService.fetch(result -> {
|
||||
fetching = false;
|
||||
fetchListener.onResult(result);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue