Merge pull request 'No more Tasks' (#48) from StartupCrash into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #48 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
87c7db39c7
@ -48,8 +48,10 @@ public class BackupScheduler implements Enable, Disable {
|
||||
|
||||
@Override
|
||||
public void disable() {
|
||||
final Iterator<Region> regions = Region.getREGION_MAP().values().stream().filter(region -> region.get(Tag.CHANGED)).iterator();
|
||||
BackupScheduler.this.doBackup(regions);
|
||||
Region.getREGION_MAP().values().stream().filter(region -> region.get(Tag.CHANGED)).iterator().forEachRemaining(region -> {
|
||||
region.backup();
|
||||
region.remove(Tag.CHANGED);
|
||||
});
|
||||
}
|
||||
|
||||
public void doBackup(final Iterator<Region> regionIterator) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren