Merge pull request #8 from lioncash/bind

Listener: Remove unnecessary bind() within start()
This commit is contained in:
Phillip Stephens 2019-09-03 19:55:03 -07:00 committed by GitHub
commit d72163ad27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void Listener::listenerProc() {
void Listener::start() { void Listener::start() {
stop(); stop();
m_running = true; m_running = true;
m_listenerThread = std::thread(std::bind(&Listener::listenerProc, this)); m_listenerThread = std::thread(&Listener::listenerProc, this);
} }
void Listener::stop() { void Listener::stop() {