« Previous | Next » 

Revision 7bcc78e4

ID7bcc78e475ec8d58d6e761ae7dc93b46eaaf37bf

Added by Guido Trotter almost 13 years ago

SimpleConfigReader.Reload, avoid double reloads

If for some reason we try to call Reload twice but the config file
hasn't changed, we don't want to load it again. Use stat() on the file
to cheaply avoid that situation.

We also return a boolean value, according to whether we have reloaded
the config or not.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences