From 07893646a9e9d141f15c7c9fc3907ab0546ba5bf Mon Sep 17 00:00:00 2001 From: Libor M Date: Fri, 20 Mar 2020 06:52:58 +0100 Subject: [PATCH] fix condition for display cleanup result --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 012cc35..9325f10 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -55,7 +55,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface public function __destruct() { - if ($this->cleaner && !$this->isCleaningFinished) { + if ($this->cleaner && $this->isCleanedPackages && !$this->isCleaningFinished) { $this->cleaner->finishCleanup(); } }