Skip to content
Snippets Groups Projects
Commit 9b6d4074 authored by Mosharaf Chowdhury's avatar Mosharaf Chowdhury
Browse files

Updating hasBlocks variable inside synchronized block

parent fceae318
No related branches found
No related tags found
No related merge requests found
...@@ -591,8 +591,8 @@ extends Broadcast[T] with Logging { ...@@ -591,8 +591,8 @@ extends Broadcast[T] with Logging {
// Update the hasBlocksBitVector first // Update the hasBlocksBitVector first
hasBlocksBitVector.synchronized { hasBlocksBitVector.synchronized {
hasBlocksBitVector.set (bcBlock.blockID) hasBlocksBitVector.set (bcBlock.blockID)
hasBlocks += 1
} }
hasBlocks += 1
rxSpeeds.addDataPoint (peerToTalkTo, receptionTime) rxSpeeds.addDataPoint (peerToTalkTo, receptionTime)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment