fix(signals): Use pointer to value

Only pass pointers to emitted signal value since the signal receivers
will be called on the same thread as the signal emitter.

Refs #302
This commit is contained in:
Michael Carlberg
2017-01-09 18:49:22 +01:00
parent 5f6a1f5ae6
commit f4406783e2
6 changed files with 10 additions and 30 deletions

View File

@ -222,7 +222,7 @@ bool controller::enqueue(string&& input_data) {
} else if (chrono::system_clock::now() - m_swallow_input < m_lastinput) {
m_log.trace("controller: Swallowing input event (throttled)");
} else {
m_inputdata = input_data;
m_inputdata = forward<string>(input_data);
return enqueue(make_input_evt());
}
return false;