From aca3924c5e0f835a2237fe65e3374adc92adf702 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 18 Oct 2021 21:50:13 +1100 Subject: [PATCH] Don't panic on request refresh if there are no existing requests --- client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 179031d0..1efd9896 100644 --- a/client.go +++ b/client.go @@ -973,7 +973,8 @@ func (c *PeerConn) updateRequestsTimerFunc() { return } if c.actualRequestState.Requests.IsEmpty() { - panic("updateRequestsTimer should have been stopped") + // If there are no outstanding requests, then a request update should have already run. + return } c.updateRequests("updateRequestsTimer") } -- 2.48.1