summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-11-18 14:08:45 (GMT)
committerTobias Markmann <tm@ayena.de>2015-11-18 14:08:45 (GMT)
commitcda6fd478b3d8f7f30f771b18324db389a01b1b3 (patch)
tree2d71e6787a0e937701968b5ce440f01c74c911ca /Swiften/Network/PlatformDomainNameServiceQuery.cpp
parenteb2cdc07f275d565b76940396381784e29125981 (diff)
downloadswift-cda6fd478b3d8f7f30f771b18324db389a01b1b3.zip
swift-cda6fd478b3d8f7f30f771b18324db389a01b1b3.tar.bz2
Fix virtual destructors and mismatching signal disconnection
Test-Information: Unit tests pass on OS X 10.10.5. Change-Id: I7b505513b4342001596ee8518bfdcf9e77c91479
Diffstat (limited to 'Swiften/Network/PlatformDomainNameServiceQuery.cpp')
-rw-r--r--Swiften/Network/PlatformDomainNameServiceQuery.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/Network/PlatformDomainNameServiceQuery.cpp b/Swiften/Network/PlatformDomainNameServiceQuery.cpp
index d68f4bf..673aaff 100644
--- a/Swiften/Network/PlatformDomainNameServiceQuery.cpp
+++ b/Swiften/Network/PlatformDomainNameServiceQuery.cpp
@@ -1,11 +1,11 @@
/*
- * Copyright (c) 2010 Isode Limited.
+ * Copyright (c) 2010-2015 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#include <boost/asio.hpp>
#include <Swiften/Network/PlatformDomainNameServiceQuery.h>
#pragma GCC diagnostic ignored "-Wold-style-cast"
@@ -39,18 +39,22 @@ using namespace Swift;
namespace Swift {
PlatformDomainNameServiceQuery::PlatformDomainNameServiceQuery(const boost::optional<std::string>& serviceName, EventLoop* eventLoop, PlatformDomainNameResolver* resolver) : PlatformDomainNameQuery(resolver), eventLoop(eventLoop), serviceValid(false) {
if (!!serviceName) {
service = *serviceName;
serviceValid = true;
}
}
+PlatformDomainNameServiceQuery::~PlatformDomainNameServiceQuery() {
+
+}
+
void PlatformDomainNameServiceQuery::run() {
getResolver()->addQueryToQueue(shared_from_this());
}
void PlatformDomainNameServiceQuery::runBlocking() {
if (!serviceValid) {
emitError();
return;
}