mirror of https://github.com/voidlizard/hbs2
fixed wtf
This commit is contained in:
parent
bc160b8335
commit
9b6496a89f
|
@ -337,7 +337,7 @@ downloadFromPeer t bu cache env h peer = liftIO $ withPeerM env do
|
||||||
s1 <- readTVarIO _sBlockChunks2 <&> IntMap.size
|
s1 <- readTVarIO _sBlockChunks2 <&> IntMap.size
|
||||||
pause @'MilliSeconds ( max (realToFrac chunkN * rtt) 2000 )
|
pause @'MilliSeconds ( max (realToFrac chunkN * rtt) 2000 )
|
||||||
s2 <- readTVarIO _sBlockChunks2 <&> IntMap.size
|
s2 <- readTVarIO _sBlockChunks2 <&> IntMap.size
|
||||||
when (s1 == s2) next
|
when (s1 /= s2) next
|
||||||
|
|
||||||
r <- liftIO $ race watchdog do
|
r <- liftIO $ race watchdog do
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue