This commit is contained in:
hrsh7th
2021-12-01 15:03:59 +09:00
parent f2f9a3325c
commit a61c36a639
2 changed files with 9 additions and 10 deletions

View File

@@ -230,17 +230,17 @@ core.complete = function(self, ctx)
if s_.incomplete and new:changed(s_.context) then if s_.incomplete and new:changed(s_.context) then
s_:complete(new, callback) s_:complete(new, callback)
else else
for _, s__ in ipairs(self:get_sources({ source.SourceStatus.FETCHING })) do for _, s__ in ipairs(self:get_sources({ source.SourceStatus.FETCHING })) do
if s_ == s__ then if s_ == s__ then
break break
end end
if not s__.incomplete and SOURCE_TIMEOUT > s__:get_fetching_time() then if not s__.incomplete and SOURCE_TIMEOUT > s__:get_fetching_time() then
return return
end
end end
self.filter.timeout = self.view:visible() and THROTTLE_TIME or 0
self:filter()
end end
self.filter.timeout = self.view:visible() and THROTTLE_TIME or 0
self:filter()
end
end end
end)(s) end)(s)
s:complete(ctx, callback) s:complete(ctx, callback)

View File

@@ -48,5 +48,4 @@ describe('misc', function()
}) })
assert.are.equal(merged.a, nil) assert.are.equal(merged.a, nil)
end) end)
end) end)