packet conn close

This commit is contained in:
Josh Baker 2017-11-14 11:43:15 -07:00
parent d99d9b2eb9
commit 1ef371695f
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ func (ln *listener) close() {
if ln.ln != nil {
ln.ln.Close()
}
if ln.pconn != nil {
ln.pconn.Close()
}
if ln.network == "unix" {
os.RemoveAll(ln.addr)
}