diff --git a/src/mumble/ServerHandler.cpp b/src/mumble/ServerHandler.cpp index 7e30e76a7..49fb1a612 100644 --- a/src/mumble/ServerHandler.cpp +++ b/src/mumble/ServerHandler.cpp @@ -461,6 +461,11 @@ void ServerHandler::sendPingInternal() { return; } + // Ensure the TLS handshake has completed before sending pings. + if (!qtsSock->isEncrypted()) { + return; + } + if (g.s.iMaxInFlightTCPPings >= 0 && iInFlightTCPPings >= g.s.iMaxInFlightTCPPings) { serverConnectionClosed(QAbstractSocket::UnknownSocketError, tr("Server is not responding to TCP pings")); return;