fix: Actually capture emumba deribit cfg obj by value

The previous "fix" didn't actually work because, although the lambda
captured the obj by value, the thread captured the lambda by reference!
This commit is contained in:
John Colvin committed 2025-01-09 16:53:22 +00:00
1 parent 14e975bc7e
commit b887cbebab
1 file changed
+1 -1
+1 -1
View File
@@ -371,7 +371,7 @@ void MarketDataGateway::_start_emumba_deribit(
ddata->real_handler.get(), ddata->trading_session_vec);
ddata->real_handler->run();
};
threading::make_thread("Emumba", [&]() { start_deribit_thr(); }).detach();
threading::make_thread("Emumba", start_deribit_thr).detach();
LOG(md, Info, "MarketDataGateway::_start_deribit ending t_id:{} t_name:{}",
os::get_thread_id(), os::get_thread_name());
}