checking delay to a number > 0

This commit is contained in:
Axel Kittenberger 2013-06-07 14:09:57 +02:00
parent 3aa8ed1182
commit 1c299c14dd
1 changed files with 10 additions and 0 deletions

View File

@ -2111,6 +2111,16 @@ local Sync = ( function( )
end
end
if
config.delay ~= nil and
(
type(config.delay) ~= 'number' or
config.delay < 0
)
then
error( 'delay must be a number and >= 0', 2 )
end
if config.excludeFrom then
s.excludes:loadFile( config.excludeFrom )
end