mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Merge pull request #52 from robotdotnet/master
Fixes Connection Listeners
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user