Added in defaults for dirwatch.
This commit is contained in:
@@ -110,8 +110,8 @@ function dirwatch:check(change_callback, scan_time, wait_time)
|
|||||||
self.scanned[directory] = new_modified
|
self.scanned[directory] = new_modified
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if system.get_time() - start_time > scan_time then
|
if system.get_time() - start_time > (scan_time or 0.01) then
|
||||||
coroutine.yield(wait_time)
|
coroutine.yield(wait_time or 0.01)
|
||||||
start_time = system.get_time()
|
start_time = system.get_time()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user