ing
This commit is contained in:
parent
f64464cc85
commit
3c60fe4276
|
@ -8,7 +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)
|
||||||
os.Remove(sh.path); nil != err {
|
os.Remove(sh.path)
|
||||||
|
|
||||||
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