Fixes Connection Listeners

AddConnectionListener was returning the uid of entry listeners, which
would make connection listeners not work.
This commit is contained in:
Thad House
2016-02-08 15:40:34 -08:00
parent 7283293887
commit 836dc7a880

View File

@@ -199,7 +199,7 @@ unsigned int Notifier::AddConnectionListener(
ConnectionListenerCallback callback) {
Start();
auto thr = m_owner.GetThread();
unsigned int uid = thr->m_entry_listeners.size();
unsigned int uid = thr->m_conn_listeners.size();
thr->m_conn_listeners.emplace_back(callback);
return uid + 1;
}