Fix crash in case the client could not be created

This commit is contained in:
Simon Stürz 2021-12-03 12:16:15 +01:00
parent 7235a132b7
commit 56536d93cd

View File

@ -88,7 +88,6 @@ TunnelProxyServer::TunnelProxyError TunnelProxyServer::registerServer(const QUui
TunnelProxyClient *tunnelProxyClient = m_proxyClients.value(clientId);
if (!tunnelProxyClient) {
qCWarning(dcTunnelProxyServer()) << "There is no client with client uuid" << clientId.toString();
tunnelProxyClient->killConnectionAfterResponse("Internal server error");
return TunnelProxyServer::TunnelProxyErrorInternalServerError;
}