History

BUGZ-812 - Log system info on domain connect or connect refusal

Roxanne Skelly committed 7 years ago

Commit e39ccff1 parent 8ee482f8 files · +40 −19Browse files

Showing the changes to libraries/networking/src/ThreadedAssignment.cpp (1 of 8 files). Show all

Unified · Split

libraries/networking/src/ThreadedAssignment.cpp+11−0
@@ -20,6 +20,7 @@ · 19 unmodified lines
2020 #include <LogHandler.h>
2121 #include <shared/QtHelpers.h>
2222
23+#include <platform/Platform.h>
2324 #include "NetworkLogging.h"
2425
2526 ThreadedAssignment::ThreadedAssignment(ReceivedMessage& message) :
@@ -38,6 +39,16 @@ ThreadedAssignment::ThreadedAssignment(ReceivedMessage& message) : · 12 unmodified lines
3839 // if the NL tells us we got a DS response, clear our member variable of queued check-ins
3940 auto nodeList = DependencyManager::get<NodeList>();
4041 connect(nodeList.data(), &NodeList::receivedDomainServerList, this, &ThreadedAssignment::clearQueuedCheckIns);
42+
43+ platform::create();
44+ if (!platform::enumeratePlatform()) {
45+ qCDebug(networking) << "Failed to enumerate platform.";
46+ }
47+}
48+
49+ThreadedAssignment::~ThreadedAssignment() {
50+ stop();
51+ platform::destroy();
4152 }
4253
4354 void ThreadedAssignment::setFinished(bool isFinished) {