Commit 9a9cd83b3c3d6574bac46f28c2ca9a34fb040e28
1 parent
adc87601
Fix fuzz mode
A recent refactor caused this fuzz mode to crash because the thread data wasn't set.
Showing
1 changed file
with
1 additions
and
0 deletions
mainapp.cpp
| ... | ... | @@ -491,6 +491,7 @@ void MainApp::start() |
| 491 | 491 | ThreadGlobals::assign(&auth); |
| 492 | 492 | |
| 493 | 493 | std::shared_ptr<ThreadData> threaddata = std::make_shared<ThreadData>(0, settings); |
| 494 | + ThreadGlobals::assignThreadData(threaddata.get()); | |
| 494 | 495 | |
| 495 | 496 | std::shared_ptr<Client> client = std::make_shared<Client>(fd, threaddata, nullptr, fuzzWebsockets, nullptr, settings.get(), true); |
| 496 | 497 | std::shared_ptr<Client> subscriber = std::make_shared<Client>(fdnull, threaddata, nullptr, fuzzWebsockets, nullptr, settings.get(), true); | ... | ... |