ing
This commit is contained in:
parent
e7526836ae
commit
f64464cc85
|
@ -8,9 +8,7 @@ import (
|
||||||
|
|
||||||
func (sh *ServerHandlers) Listen() (net.Listener, error) {
|
func (sh *ServerHandlers) Listen() (net.Listener, error) {
|
||||||
sh.path = filepath.Join(os.TempDir(), sh.Addr)
|
sh.path = filepath.Join(os.TempDir(), sh.Addr)
|
||||||
if err := os.Remove(sh.path); nil != err {
|
os.Remove(sh.path); nil != err {
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return net.ListenUnix("unix", &net.UnixAddr{Name: sh.path, Net: "unix"})
|
return net.ListenUnix("unix", &net.UnixAddr{Name: sh.path, Net: "unix"})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user