From e0cf94f5b0dd1854c101e4b25583ab17565c8936 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 16 Nov 2020 18:10:49 +0400 Subject: [PATCH] privval: reset pingTimer to avoid sending unnecessary pings (#5642) (#5668) Refs #5550 --- privval/signer_listener_endpoint.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/privval/signer_listener_endpoint.go b/privval/signer_listener_endpoint.go index be5acb278..fefa68317 100644 --- a/privval/signer_listener_endpoint.go +++ b/privval/signer_listener_endpoint.go @@ -123,6 +123,9 @@ func (sl *SignerListenerEndpoint) SendRequest(request privvalproto.Message) (*pr return nil, err } + // Reset pingTimer to avoid sending unnecessary pings. + sl.pingTimer.Reset(sl.pingInterval) + return &res, nil }