Moved close to finally
parent
8fe0cae73a
commit
111fe12ae7
|
@ -76,9 +76,11 @@ public abstract class AbstractCompressor {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if(ctx.getInitiator() == ActionInitiator.Player)
|
if(ctx.getInitiator() == ActionInitiator.Player)
|
||||||
log.sendError(ctx, "Something went wrong while compressing files!");
|
log.sendError(ctx, "Something went wrong while compressing files!");
|
||||||
|
} finally {
|
||||||
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
close();
|
// close();
|
||||||
|
|
||||||
log.sendInfoAL(ctx, "Compression took: {} seconds.", Utilities.formatDuration(Duration.between(start, Instant.now())));
|
log.sendInfoAL(ctx, "Compression took: {} seconds.", Utilities.formatDuration(Duration.between(start, Instant.now())));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue