mirror of
https://github.com/nfstream/nfstream.git
synced 2026-05-22 03:03:29 +00:00
Fix on_expire for non volatile plugins.
This commit is contained in:
parent
22ce1aa1fa
commit
87d6ab8808
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue