mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 15:20:42 +01:00
auto-t: hostapd: catch local socket remove exception
This happens if hostapd is killed ungracefully which is done in some tests.
This commit is contained in:
parent
1b4c6e9be8
commit
36bc4e15c3
@ -118,7 +118,11 @@ class HostapdCLI:
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.ctrl_sock.close()
|
self.ctrl_sock.close()
|
||||||
os.remove(self.local_ctrl)
|
|
||||||
|
try:
|
||||||
|
os.remove(self.local_ctrl)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if self._hostapd_restarted:
|
if self._hostapd_restarted:
|
||||||
ctx.stop_process(ctx.hostapd.process, force)
|
ctx.stop_process(ctx.hostapd.process, force)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user