From f390f1effe7c3655a15062ba6db14f043c36911c Mon Sep 17 00:00:00 2001 From: Aurora Gaffney Date: Tue, 19 Nov 2024 17:27:53 -0600 Subject: [PATCH] fix: unlock mutex on error in chainsync client --- protocol/chainsync/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/chainsync/client.go b/protocol/chainsync/client.go index 0ceb1d77..e48beec2 100644 --- a/protocol/chainsync/client.go +++ b/protocol/chainsync/client.go @@ -447,6 +447,7 @@ func (c *Client) syncLoop() { msg := NewMsgRequestNext() if err := c.SendMessage(msg); err != nil { c.SendError(err) + c.busyMutex.Unlock() return } c.busyMutex.Unlock()