Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions protocol/blockfetch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func (c *Client) GetBlock(point common.Point) (ledger.Block, error) {
}
err, ok := <-c.startBatchResultChan
if !ok {
c.busyMutex.Unlock()
return nil, protocol.ProtocolShuttingDownError
}
if err != nil {
Expand All @@ -172,6 +173,7 @@ func (c *Client) GetBlock(point common.Point) (ledger.Block, error) {
}
block, ok := <-c.blockChan
if !ok {
c.busyMutex.Unlock()
return nil, protocol.ProtocolShuttingDownError
}
return block, nil
Expand Down