mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
test-runner: fix exception in Hostapd __del__
If Hostapd did not start there was no CLI instance created and that member should be be accessed.
This commit is contained in:
parent
f0a890da8a
commit
81cf11b0f5
@ -546,6 +546,9 @@ class Hostapd:
|
||||
print("Failed to remove %s" % self.global_ctrl_iface)
|
||||
|
||||
for hapd in self.instances:
|
||||
if not hapd.cli:
|
||||
continue
|
||||
|
||||
hapd.cli._instances[hapd.config] = None
|
||||
hapd.cli = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user