diff --git a/crates/rkgk/src/api/wall.rs b/crates/rkgk/src/api/wall.rs index ab13378..d069911 100644 --- a/crates/rkgk/src/api/wall.rs +++ b/crates/rkgk/src/api/wall.rs @@ -429,13 +429,15 @@ impl SessionLoop { } } - ws.send(to_message(&Notify::Chunks { - chunks: chunk_infos, - has_more: !self.pending_images.is_empty() - || self.viewport_chunks.clone().next().is_some(), - })) - .await?; - ws.send(Message::Binary(packet)).await?; + if !chunk_infos.is_empty() { + ws.send(to_message(&Notify::Chunks { + chunks: chunk_infos, + has_more: !self.pending_images.is_empty() + || self.viewport_chunks.clone().next().is_some(), + })) + .await?; + ws.send(Message::Binary(packet)).await?; + } Ok(()) }