From bab9a9bc259552abb8b4a8570d2a121283d611ec Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 9 Jan 2018 10:58:56 +0900 Subject: Fix an occasional crash when resolving a server name Closes #149. --- connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connection.cpp') diff --git a/connection.cpp b/connection.cpp index 8765950a..53a38f0d 100644 --- a/connection.cpp +++ b/connection.cpp @@ -123,7 +123,7 @@ void Connection::resolveServer(const QString& mxidOrDomain) dns->setType(QDnsLookup::SRV); dns->setName("_matrix._tcp." + domain); - connect(dns, &QDnsLookup::finished, [this,dns,&maybeBaseUrl]() { + connect(dns, &QDnsLookup::finished, [this,dns,maybeBaseUrl]() { QUrl baseUrl { maybeBaseUrl }; if (dns->error() == QDnsLookup::NoError && dns->serviceRecords().isEmpty()) -- cgit v1.2.3