Skip to content

Commit

Permalink
remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Eiafuawn committed Feb 19, 2024
1 parent 55cbdc0 commit cd334b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::{
io::{BufRead, BufReader, Error, ErrorKind, Read, Write},
path::{Path, PathBuf},
process::{Command, Stdio},
thread::sleep,
time::Instant,
};
use zip::write::{FileOptions, ZipWriter};
Expand Down Expand Up @@ -95,7 +94,6 @@ impl Manager {
.for_each(|line| self.send_output(line));

self.send_output("Zipping finished! Press Enter to go back to the menu".to_string());
sleep(std::time::Duration::from_secs(2));

if let Some(tx) = &self.command_tx {
tx.send(Action::DownloadFinished).unwrap();
Expand Down Expand Up @@ -131,7 +129,6 @@ impl Manager {
.spawn()?;

self.send_output("Unzipping finished! Press Enter to go back to the menu".to_string());
sleep(std::time::Duration::from_secs(2));

if let Some(tx) = &self.command_tx {
tx.send(Action::DownloadFinished).unwrap();
Expand Down

0 comments on commit cd334b2

Please sign in to comment.