aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-09 10:58:56 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-09 11:22:34 +0900
commitbab9a9bc259552abb8b4a8570d2a121283d611ec (patch)
tree96249e0fc5bc697ddcd4c380dc16f0da21787ff3
parent1990a0f67906a8f919c97cea56fc5670cc09399c (diff)
downloadlibquotient-bab9a9bc259552abb8b4a8570d2a121283d611ec.tar.gz
libquotient-bab9a9bc259552abb8b4a8570d2a121283d611ec.zip
Fix an occasional crash when resolving a server name
Closes #149.
-rw-r--r--connection.cpp2
1 files changed, 1 insertions, 1 deletions
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())