Skip to content

Commit bf6d8d7

Browse files
authored
fix: unlock mutex on error in chainsync client (#795)
1 parent 68c6e9b commit bf6d8d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

protocol/chainsync/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ func (c *Client) syncLoop() {
447447
msg := NewMsgRequestNext()
448448
if err := c.SendMessage(msg); err != nil {
449449
c.SendError(err)
450+
c.busyMutex.Unlock()
450451
return
451452
}
452453
c.busyMutex.Unlock()

0 commit comments

Comments
 (0)