Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add thread sleep to prevent continuous retry #46

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

grtsinry43
Copy link
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
1 check passed
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