mirror of https://github.com/fatedier/frp
				
				
				
			models/server: fix bug, program will core if listener is nil
							parent
							
								
									975c2a97c8
								
							
						
					
					
						commit
						3218eda481
					
				| 
						 | 
				
			
			@ -128,7 +128,9 @@ func (p *ProxyServer) Start() (err error) {
 | 
			
		|||
func (p *ProxyServer) Close() {
 | 
			
		||||
	p.Lock()
 | 
			
		||||
	p.Status = consts.Idle
 | 
			
		||||
	p.listener.Close()
 | 
			
		||||
	if p.listener != nil {
 | 
			
		||||
		p.listener.Close()
 | 
			
		||||
	}
 | 
			
		||||
	close(p.ctlMsgChan)
 | 
			
		||||
	close(p.cliConnChan)
 | 
			
		||||
	p.userConnList = list.New()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue