diff options
Diffstat (limited to 'src/sandbox/remote.rs')
| -rw-r--r-- | src/sandbox/remote.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sandbox/remote.rs b/src/sandbox/remote.rs index ba70155..51ec047 100644 --- a/src/sandbox/remote.rs +++ b/src/sandbox/remote.rs @@ -140,9 +140,9 @@ impl Sandbox for RemoteSandbox { let mut writer = self.writer.lock().unwrap().try_clone()?; { let (stop, interval) = (stop.clone(), self.ttl / 3); - std::thread::spawn(move || { + std::thread::spawn(crate::time::inherit(move || { while !stop.load(Ordering::SeqCst) { - std::thread::sleep(interval.max(std::time::Duration::from_millis(50))); + crate::time::sleep(interval.max(std::time::Duration::from_millis(50))); if stop.load(Ordering::SeqCst) { break; } @@ -150,7 +150,7 @@ impl Sandbox for RemoteSandbox { break; } } - }); + })); } let mut stdout = Vec::new(); let mut stderr = Vec::new(); |
