fix: dont freak out when client loses connection

This commit is contained in:
2026-08-16 17:53:42 +02:00
parent 59884919a6
commit 71105d9783
3 changed files with 18 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
break;
}
if buffer == "/test\n" {
buffer = String::from("A").repeat(1024 * 1024 * 2);
}
client.send_text_message(buffer.clone()).await;
buffer.clear();
}