fixed wtf

This commit is contained in:
voidlizard 2024-11-05 19:25:59 +03:00
parent bc160b8335
commit 9b6496a89f
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ downloadFromPeer t bu cache env h peer = liftIO $ withPeerM env do
s1 <- readTVarIO _sBlockChunks2 <&> IntMap.size
pause @'MilliSeconds ( max (realToFrac chunkN * rtt) 2000 )
s2 <- readTVarIO _sBlockChunks2 <&> IntMap.size
when (s1 == s2) next
when (s1 /= s2) next
r <- liftIO $ race watchdog do