fix nil pointer issue

new
dingjun 6 years ago
parent 61fbd7ab0a
commit ff7f97d9a2

@ -239,10 +239,12 @@ func (p *clientConn) MarkDead(conn *http2.ClientConn) {
p.lock.Lock() p.lock.Lock()
defer p.lock.Unlock() defer p.lock.Unlock()
if p.conn != nil {
log.Errorln("mark dead") log.Errorln("mark dead")
p.conn.Close() p.conn.Close()
p.conn = nil p.conn = nil
} }
}
var debug bool var debug bool
var insecure bool var insecure bool

Loading…
Cancel
Save