diff --git a/unixgram.go b/unixgram.go index 4433a79..9995795 100644 --- a/unixgram.go +++ b/unixgram.go @@ -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() }