Pass session and stop token through reconnect flow

This commit is contained in:
Sapphire
2025-12-31 00:59:36 -06:00
parent 416297f232
commit a3c7a604e0
6 changed files with 28 additions and 30 deletions
+2 -2
View File
@@ -293,13 +293,13 @@ void wivrn::wivrn_connection::init(std::stop_token stop_token, std::function<voi
wivrn::update_last_connection_timestamp(clean_key(headset_key.public_key()));
}
void wivrn::wivrn_connection::reset(TCP && tcp, std::function<void()> tick)
void wivrn::wivrn_connection::reset(std::stop_token stop, TCP && tcp, std::function<void()> tick)
{
if (stream)
stream = decltype(stream)();
control = std::move(tcp);
init({}, tick);
init(stop, tick);
}
void wivrn::wivrn_connection::shutdown()