3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

auto-t: don't clear out rules from hwsim object

This got added in the re-write but a __del__ method was also
added to the Rule class as well. This caused problems if hwsim
cleaned up since it removed the rules, which caused each rule
to call __del__. Since the rule had already been removed there
was no longer a DBus interface which raised an exception.
This commit is contained in:
James Prestwood 2020-09-14 14:02:31 -07:00 committed by Denis Kenzior
parent ffe9ce8034
commit 1b03675002

View File

@ -274,10 +274,6 @@ class Hwsim(iwd.AsyncOpAbstract):
self._rules = RuleSet(self, objects)
self._radios = RadioList(self, objects)
def __del__(self):
for rule in self._rules.values():
rule.remove()
@property
def rules(self):
return self._rules