Open Apteryx0 opened 7 years ago
This seems to fix the issue:
diff --git a/src/Utils.js b/src/Utils.js
index 61002f1..4c1b7a1 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -177,7 +177,7 @@ export const FlattenMeta$ = Rx.flatMap((meta) => {
return MergeMeta(IsValid(TimesCount(GetThreadCount(meta))))
})
export const RxThrottleComplete = (window$, $, sh) => {
- const selector = window => O.merge($.throttle(window, sh), $.last())
+ const selector = window => O.merge($.throttle(window, sh), $.takeLast(1))
return window$.first().flatMap(selector)
}
export const IsCompleted$ = (meta$) => {
I have code that works fine except when resuming a download where all the file is downloaded. I.e. I see something like this returned from the observable returned by DownloadFromMTDFile:
My code is (I think) relatively simple:
I assume that the problem is that the DownloadFromMTDFile tries to return/process HTTP responses, however, there are none (and should be none). I'll take a further look at this to see if I can work out what the root cause is, but my Rx/ramda skills are limits.