This commit is contained in:
2025-11-13 09:22:05 +01:00
parent f37d93c417
commit 16aeade138
4 changed files with 108 additions and 8 deletions
@@ -663,6 +663,21 @@ pub fn run() {
}
}
PeerEvent::NoPeersHaveGame { id } => {
log::warn!("PeerEvent::NoPeersHaveGame received for {id}");
if let Err(e) = app_handle.emit("game-no-peers", Some(id.clone())) {
log::error!("PeerEvent::NoPeersHaveGame: Failed to emit game-no-peers event: {e}");
}
app_handle
.state::<LanSpreadState>()
.inner()
.games_in_download
.write()
.await
.remove(&id);
}
PeerEvent::DownloadGameFilesBegin { id } => {
log::info!("PeerEvent::DownloadGameFilesBegin received");