Skip to content

Commit e2356be

Browse files
committed
fix file locking bug
1 parent d436c82 commit e2356be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tmc-langs/src/config/tmc_config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl TmcConfig {
101101
"Failed to deserialize config at {}, resetting",
102102
path.display()
103103
);
104+
drop(guard); // unlock file before recreating it
104105
Self::init_at(client_name, &path)?
105106
}
106107
}

0 commit comments

Comments
 (0)