From 836dc7a880d4f77c96984f59f7929a16af5a97b2 Mon Sep 17 00:00:00 2001 From: Thad House Date: Mon, 8 Feb 2016 15:40:34 -0800 Subject: [PATCH] Fixes Connection Listeners AddConnectionListener was returning the uid of entry listeners, which would make connection listeners not work. --- src/Notifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notifier.cpp b/src/Notifier.cpp index 0fdd0456a7..6f901ad202 100644 --- a/src/Notifier.cpp +++ b/src/Notifier.cpp @@ -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; }