mirror of
https://github.com/AxioDL/jbus.git
synced 2025-12-09 21:47:50 +00:00
Listener: Remove unnecessary bind() within start()
std::thread already handles execution of member functions out-of-the-box.
This commit is contained in:
@@ -80,7 +80,7 @@ void Listener::listenerProc() {
|
||||
void Listener::start() {
|
||||
stop();
|
||||
m_running = true;
|
||||
m_listenerThread = std::thread(std::bind(&Listener::listenerProc, this));
|
||||
m_listenerThread = std::thread(&Listener::listenerProc, this);
|
||||
}
|
||||
|
||||
void Listener::stop() {
|
||||
|
||||
Reference in New Issue
Block a user