Skip to content

feat: add thread sleep to prevent continuous retry#46

Merged
ttimochan merged 1 commit intottimochan:masterfrom
grtsinry43:master
Feb 1, 2025
Merged

feat: add thread sleep to prevent continuous retry#46
ttimochan merged 1 commit intottimochan:masterfrom
grtsinry43:master

Conversation

@grtsinry43
Copy link
Copy Markdown
Contributor

add thread sleep to prevent continuous retry

failure_count += 1;
        if failure_count >= 3 {
            thread::sleep(Duration::from_secs(1));
            println!("It seems that the window is not found or it's not a valid window (Terminal).");
            failure_count = 0;
        }

@ttimochan ttimochan merged commit 47943bd into ttimochan:master Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants