mirror of
https://github.com/taigrr/golang-wpasupplicant
synced 2025-01-18 04:43:18 -08:00
Send DETACH message before Closing connection
This commit is contained in:
parent
ba0f86f6a1
commit
a0e5516dbc
@ -244,6 +244,10 @@ func (uc *unixgramConn) EventQueue() chan WPAEvent {
|
||||
}
|
||||
|
||||
func (uc *unixgramConn) Close() error {
|
||||
if err := uc.runCommand("DETACH"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return uc.c.Close()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user