Skip to content

Commit

Permalink
fix: fix not accept issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iholston committed Jun 15, 2024
1 parent 043e53a commit 2f101bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lol-accept"
version = "2.1.0"
version = "2.1.1"
edition = "2021"

[dependencies]
Expand Down
5 changes: 3 additions & 2 deletions src/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ impl Acceptor {
while !self.terminate.load(Ordering::SeqCst) {
if !self.paused.load(Ordering::SeqCst) && self.game_running() {
if let Some(_) = self.session.as_ref().filter(|ls| ls.id == self.game_pid) {
if self.get_game_phase() == "Matchmaking" {
let phase = self.get_game_phase();
if phase == "Matchmaking" {
thread::sleep(Duration::from_millis(300));
continue;
}
if self.get_game_phase() == "ReadyCheck" {
if phase == "ReadyCheck" {
self.accept_match();
thread::sleep(Duration::from_secs(1));
continue;
Expand Down

0 comments on commit 2f101bd

Please sign in to comment.