diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 6ef392d..6a22657 100644 --- a/src/config.rs +++ b/src/config.rs @@ -211,6 +211,9 @@ pub fn setup_file_watch(config_path: PathBuf, state: Arc<State>) { for event in events { if event.mask.contains(EventMask::MODIFY) { + if config_path.metadata().map(|m| m.len()).unwrap_or_default() == 0 { + continue; + } match Config::load(&config_path) { Ok(conf) => { let mut r = state.config.blocking_write(); |