(fix): fix connection issues

This commit is contained in:
Alois 2026-07-28 01:02:05 +02:00
commit 8a48e7d46e
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
7 changed files with 80 additions and 148 deletions

View file

@ -105,7 +105,7 @@ impl ClientConnection {
};
tokio::spawn(async move {
let _permit = permit;
if cv.is_type(CommunicationType::Ping) {
if cv.is_type(CommunicationType::ClientPing) {
self.handle_ping(cv).await;
return;
}
@ -331,7 +331,7 @@ impl ClientConnection {
};
// Send pong response
let response = CommunicationValue::new(CommunicationType::Pong)
let response = CommunicationValue::new(CommunicationType::ClientPing)
.with_id(cv.get_id())
.add_typed_default(
DataType::PingIota,