Skip to content

Commit 2bca1df

Browse files
committed
fix(monitor): update process refresh to always check exe and cmd
The previous implementation only checked executable and command paths if they weren't set, which could miss updates. Now always checking ensures we have the latest process information.
1 parent c57635e commit 2bca1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,5 @@ pub(crate) fn extract_hot_reload_project_path(process: &sysinfo::Process) -> Opt
271271
/// create process refresh kind
272272
fn process_refresh_kind() -> ProcessRefreshKind {
273273
// we need nothing, no cpu, no memory, just basics
274-
ProcessRefreshKind::nothing().with_exe(UpdateKind::OnlyIfNotSet).with_cmd(UpdateKind::OnlyIfNotSet)
274+
ProcessRefreshKind::nothing().with_exe(UpdateKind::Always).with_cmd(UpdateKind::Always)
275275
}

0 commit comments

Comments
 (0)