:3
This commit is contained in:
@@ -56,9 +56,10 @@ end
|
||||
|
||||
function updater:check(branch)
|
||||
local curr = os.time();
|
||||
if not ((math.abs(curr - self.last_check) >= self.threshold) and (self.curr_commit_hash ~= "")) then
|
||||
-- log.debug("Not time for an update yet");
|
||||
return false;
|
||||
if math.abs(curr - self.last_check) < self.threshold then
|
||||
if self.curr_commit_hash ~= "" then
|
||||
return false;
|
||||
end
|
||||
end
|
||||
self.last_check = curr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user