Reset pong timer on all received data (with valid signature). Not only pong messages
This commit is contained in:
parent
b8955deed8
commit
4517db2048
1 changed files with 2 additions and 3 deletions
|
@ -105,14 +105,13 @@ void LiveObject::readyRead() {
|
|||
//qDebug() << "HASH mismatch!" << msg->name();
|
||||
return;
|
||||
}
|
||||
d->pongTimer.stop();
|
||||
d->pongTimer.start();
|
||||
|
||||
if (msg->name() == "") {
|
||||
return;
|
||||
} else if (msg->name() == "disconnect") {
|
||||
this->disconnect();
|
||||
} else if (msg->name() == "pong") {
|
||||
d->pongTimer.stop();
|
||||
d->pongTimer.start();
|
||||
} else if (msg->name() == "registered") {
|
||||
d->registered = true;
|
||||
emit registered(msg->argument(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue