Scan for targets before iterating over targets.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Sep 2011 19:17:49 +0000 (21:17 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Sep 2011 19:17:49 +0000 (21:17 +0200)
src/main/java/net/pterodactylus/wotns/main/IdentityTargets.java

index 1266874..0222820 100644 (file)
@@ -74,6 +74,7 @@ public class IdentityTargets implements Iterable<Entry<String, String>> {
         */
        @Override
        public Iterator<Entry<String, String>> iterator() {
+               scanForTargets();
                return targets.entrySet().iterator();
        }