feature/freebsd-support-one: main freebsd adjustments

This commit is contained in:
cosmicpsyop
2023-10-24 03:31:54 -07:00
parent 13b0296ba3
commit b22e515a71
6 changed files with 17 additions and 3 deletions

View File

@ -391,7 +391,7 @@ struct Router {
hubTrigger->setData(&asyncCb);
hubTrigger->start([](uS::Async *a){
auto *r = static_cast<std::function<void()> *>(a->data);
auto *r = static_cast<std::function<void()> *>(a->getData());
(*r)();
});

View File

@ -223,7 +223,7 @@ void RelayServer::runWebsocket(ThreadPool<MsgWebsocket>::Thread &thr) {
hubTrigger->setData(&asyncCb);
hubTrigger->start([](uS::Async *a){
auto *r = static_cast<std::function<void()> *>(a->data);
auto *r = static_cast<std::function<void()> *>(a->getData());
(*r)();
});