only close the handshake fuzz runner once

This commit is contained in:
Marten Seemann 2020-09-04 11:40:49 +07:00
parent cd78ea9020
commit 8251b3614f

View file

@ -116,6 +116,9 @@ func newRunner(client, server *handshake.CryptoSetup, role string) *runner {
func (r *runner) OnReceivedParams(*wire.TransportParameters) {}
func (r *runner) OnHandshakeComplete() {}
func (r *runner) OnError(err error) {
if r.errored {
return
}
r.errored = true
(*r.client).Close()
(*r.server).Close()