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