fix issues

This commit is contained in:
Maple Nebel 2026-04-28 15:07:33 +02:00
commit 747e37409f
3 changed files with 32 additions and 32 deletions

View file

@ -180,11 +180,14 @@ impl MatchmakeExtension for User {
}
async fn update_progress_score(&self, gid: u32, progress: u8) -> Result<(), ErrorCode> {
let session = self.matchmake_manager.get_session(gid).await?;
#[cfg(feature = "v3-5-0")]
{
let session = self.matchmake_manager.get_session(gid).await?;
let mut session = session.lock().await;
let mut session = session.lock().await;
session.session.progress_score = progress;
session.session.progress_score = progress;
}
Ok(())
}