zetbaitsu / Compressor

An android image compression library.
7.08k stars 963 forks source link

Delete cache on exception #197

Open WildOrangutan opened 2 years ago

WildOrangutan commented 2 years ago

Looking at source code of Compressor.compress and it's implementation down the line.

Seems like cache stays behind, if Exception occurs. Probably some sort of try-catch is needed, that deletes cached file in finally block.