From 87d6ab8808ea24d164a2a6d22bf6f7bfcce2665e Mon Sep 17 00:00:00 2001 From: aouinizied Date: Thu, 16 Apr 2020 00:21:19 +0200 Subject: [PATCH] Fix on_expire for non volatile plugins. --- nfstream/entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfstream/entry.py b/nfstream/entry.py index 2d1420a..35c5316 100644 --- a/nfstream/entry.py +++ b/nfstream/entry.py @@ -31,12 +31,12 @@ class NFEntry(object): def clean(self, core, user): """ Volatile attributes cleaner """ for plugin in core: + plugin.on_expire(self) if plugin.volatile: - plugin.on_expire(self) delattr(self, plugin.name) for plugin in user: + plugin.on_expire(self) if plugin.volatile: - plugin.on_expire(self) delattr(self, plugin.name) return self