Fix singleton object created on temporary thread

This commit is contained in:
Atlante45 2014-11-18 16:55:53 -08:00
parent 62471c90e3
commit 1443cece5b

View file

@ -21,7 +21,7 @@
#include <NodeList.h>
#include <PacketHeaders.h>
#include <SharedUtil.h>
#include <SoundCache.h>
#include "AssignmentFactory.h"
#include "AssignmentThread.h"
@ -122,7 +122,9 @@ AssignmentClient::AssignmentClient(int &argc, char **argv) :
connect(&AccountManager::getInstance(), &AccountManager::authRequired,
this, &AssignmentClient::handleAuthenticationRequest);
// Create Singleton objects on main thread
NetworkAccessManager::getInstance();
SoundCache::getInstance();
}
void AssignmentClient::sendAssignmentRequest() {