diff --git a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java index b6f2a5f..59f084d 100644 --- a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java +++ b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java @@ -343,6 +343,13 @@ public abstract class Getdown if (_app.verifyMetadata(this)) { log.info("Application requires update."); update(); + + // do resource cleanup + final List cleanupPatterns = _app.cleanupPatterns(); + if (!cleanupPatterns.isEmpty()) { + cleanupResources(cleanupPatterns); + } + // loop back again and reverify the metadata continue; } @@ -425,12 +432,6 @@ public abstract class Getdown _readyToInstall = true; install(); - // do resource cleanup - final List cleanupPatterns = _app.cleanupPatterns(); - if (!cleanupPatterns.isEmpty()) { - cleanupResources(cleanupPatterns); - } - // Only launch if we aren't in silent mode. Some mystery program starting out // of the blue would be disconcerting. if (!_silent || _launchInSilent) {