MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / clear_lock_if_required

Function clear_lock_if_required

rust/src/lock.rs:83–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83pub fn clear_lock_if_required() {
84 if let Some(lock) = get_lock_path()
85 && lock.exists()
86 {
87 fs::remove_file(lock).unwrap_or_default();
88 }
89}
90
91fn set_lock_path(path: Option<PathBuf>) {
92 LOCK_PATH.with(|lock_path| {

Callers 1

flush_and_exitFunction · 0.85

Calls 3

get_lock_pathFunction · 0.85
remove_fileFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected