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