Send DETACH message before Closing connection

This commit is contained in:
Matias Doyle 2017-11-09 14:09:56 +01:00
parent ba0f86f6a1
commit a0e5516dbc

View File

@ -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()
}