diff --git a/P2P/Proxy.hs b/P2P/Proxy.hs index 8edba3c79d..fbf8520725 100644 --- a/P2P/Proxy.hs +++ b/P2P/Proxy.hs @@ -411,7 +411,7 @@ proxy proxydone proxymethods servermode (ClientSide clientrunst clientconn) remo then runRemoteSideOrSkipFailed remoteside $ do net $ sendBytes (Len chunklen) chunk nullMeterUpdate return r - else if (n' <= remoteoffset) + else if (n' > remoteoffset) then do let chunkoffset = remoteoffset - n let subchunklen = chunklen - chunkoffset