more e2e tests (#1845)

This commit is contained in:
fatedier
2020-09-07 14:57:23 +08:00
committed by GitHub
parent 268afb3438
commit c9fe23eb10
21 changed files with 617 additions and 51 deletions

View File

@ -246,7 +246,9 @@ func (l *UDPListener) Accept() (net.Conn, error) {
func (l *UDPListener) Close() error {
if !l.closeFlag {
l.closeFlag = true
l.readConn.Close()
if l.readConn != nil {
l.readConn.Close()
}
}
return nil
}