fix logic error
This commit is contained in:
parent
edaed18e4c
commit
54fcc2ec51
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ proxySpecialRemote protoversion r ihdl ohdl owaitv oclosedv mexportdb = go
|
||||||
)
|
)
|
||||||
|
|
||||||
getcontents n h = unsafeInterleaveIO $ do
|
getcontents n h = unsafeInterleaveIO $ do
|
||||||
isdone <- isEmptyMVar donev <||> isEmptyMVar cancelv
|
isdone <- (not <$> isEmptyMVar donev) <||> (not <$> isEmptyMVar cancelv)
|
||||||
c <- BS.hGet h defaultChunkSize
|
c <- BS.hGet h defaultChunkSize
|
||||||
let n' = n - fromIntegral (BS.length c)
|
let n' = n - fromIntegral (BS.length c)
|
||||||
let c' = L.fromChunks [BS.take (fromIntegral n) c]
|
let c' = L.fromChunks [BS.take (fromIntegral n) c]
|
||||||
|
|
Loading…
Add table
Reference in a new issue