Commit e4bed6ea authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Still mark setUnresponsive(false) when the pings arrive late

It usually means that the client was busy and couldn't answer the ping
as early as we'd hoped but there's a good chance the process is healthy
again.
parent b5f9d9fd
......@@ -1147,11 +1147,8 @@ void XdgToplevelClient::handlePingDelayed(quint32 serial)
void XdgToplevelClient::handlePongReceived(quint32 serial)
{
auto it = m_pings.find(serial);
if (it != m_pings.end()) {
setUnresponsive(false);
m_pings.erase(it);
}
m_pings.remove(serial);
setUnresponsive(false);
}
void XdgToplevelClient::sendPing(PingReason reason)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment