Skip to content

Commit 82ab801

Browse files
committed
teepod: Fix file existance check
1 parent 0b23775 commit 82ab801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teepod/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl App {
189189
if !is_running {
190190
let work_dir = self.work_dir(id);
191191
for path in [work_dir.serial_pty(), work_dir.qmp_socket()] {
192-
if path.exists() {
192+
if path.symlink_metadata().is_ok() {
193193
fs::remove_file(path)?;
194194
}
195195
}

0 commit comments

Comments
 (0)