mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 15:07:53 +00:00
Bump libs. added CI
This commit is contained in:
@@ -64,26 +64,6 @@ impl XrayRunner {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn is_running(&mut self) -> bool {
|
||||
if let Some(process) = &mut self.process {
|
||||
match process.try_wait() {
|
||||
Ok(Some(_)) => {
|
||||
// Process has exited
|
||||
self.process = None;
|
||||
false
|
||||
}
|
||||
Ok(None) => true, // Process is still running
|
||||
Err(_) => {
|
||||
// Error checking status, assume not running
|
||||
self.process = None;
|
||||
false
|
||||
}
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for XrayRunner {
|
||||
|
||||
Reference in New Issue
Block a user