This commit is contained in:
crusader 2017-10-26 23:56:30 +09:00
parent f64464cc85
commit 3c60fe4276

View File

@ -8,7 +8,7 @@ import (
func (sh *ServerHandlers) Listen() (net.Listener, error) {
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"})
}