mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 09:36:43 +00:00
feature/freebsd-support-one: main freebsd adjustments
This commit is contained in:
@ -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)();
|
||||
});
|
||||
|
||||
|
@ -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)();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user