(fix): fix connection issues
This commit is contained in:
parent
c04e463336
commit
8a48e7d46e
7 changed files with 80 additions and 148 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue