Fix Position for input::reset
This commit is contained in:
parent
71b214ca43
commit
661c8260e5
1 changed files with 3 additions and 3 deletions
|
|
@ -884,9 +884,6 @@ state_e state(session_t &session) {
|
||||||
|
|
||||||
void stop(session_t &session) {
|
void stop(session_t &session) {
|
||||||
while_starting_do_nothing(session.state);
|
while_starting_do_nothing(session.state);
|
||||||
|
|
||||||
//Reset input on session stop to avoid stuck repeated keys
|
|
||||||
input::reset();
|
|
||||||
auto expected = state_e::RUNNING;
|
auto expected = state_e::RUNNING;
|
||||||
auto already_stopping = !session.state.compare_exchange_strong(expected, state_e::STOPPING);
|
auto already_stopping = !session.state.compare_exchange_strong(expected, state_e::STOPPING);
|
||||||
if(already_stopping) {
|
if(already_stopping) {
|
||||||
|
|
@ -903,6 +900,9 @@ void join(session_t &session) {
|
||||||
session.audioThread.join();
|
session.audioThread.join();
|
||||||
BOOST_LOG(debug) << "Waiting for control to end..."sv;
|
BOOST_LOG(debug) << "Waiting for control to end..."sv;
|
||||||
session.controlEnd.view();
|
session.controlEnd.view();
|
||||||
|
//Reset input on session stop to avoid stuck repeated keys
|
||||||
|
BOOST_LOG(debug) << "Resetting Input..."sv;
|
||||||
|
input::reset();
|
||||||
BOOST_LOG(debug) << "Session ended"sv;
|
BOOST_LOG(debug) << "Session ended"sv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue