diff --git a/mainapp.cpp b/mainapp.cpp index ab3ad98..80eb56f 100644 --- a/mainapp.cpp +++ b/mainapp.cpp @@ -491,6 +491,7 @@ void MainApp::start() ThreadGlobals::assign(&auth); std::shared_ptr threaddata = std::make_shared(0, settings); + ThreadGlobals::assignThreadData(threaddata.get()); std::shared_ptr client = std::make_shared(fd, threaddata, nullptr, fuzzWebsockets, nullptr, settings.get(), true); std::shared_ptr subscriber = std::make_shared(fdnull, threaddata, nullptr, fuzzWebsockets, nullptr, settings.get(), true);