more e2e tests (#1845)

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

No files matched your search

+3 -1
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
}