ugly
This commit is contained in:
@@ -1854,6 +1854,10 @@ async fn handle_peer_stream(
|
||||
if let Some(ref db) = *db_guard {
|
||||
db.all_games().into_iter().cloned().collect::<Vec<Game>>()
|
||||
} else {
|
||||
// Local database not loaded yet, return empty result
|
||||
log::info!(
|
||||
"Local game database not yet loaded, responding with empty game list"
|
||||
);
|
||||
Vec::new()
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user