diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-06 07:51:50 -0500 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-06 07:51:50 -0500 |
commit | 37d508ab969afaf16c2aee1838a225022de34177 (patch) | |
tree | 1db65edb3ce0123e6e025f8b96b3bbadee952fdb /controller/DB.cpp | |
parent | f4f8fef82ed336d3a50dced91462462fbe61d58e (diff) | |
download | infinitytier-37d508ab969afaf16c2aee1838a225022de34177.tar.gz infinitytier-37d508ab969afaf16c2aee1838a225022de34177.zip |
Refactoring in prep for mirroring
Diffstat (limited to 'controller/DB.cpp')
-rw-r--r-- | controller/DB.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/controller/DB.cpp b/controller/DB.cpp index bb734dc8..75adf53e 100644 --- a/controller/DB.cpp +++ b/controller/DB.cpp @@ -313,7 +313,7 @@ void DB::_memberChanged(nlohmann::json &old,nlohmann::json &memberConfig,bool in if (initialized) { std::lock_guard<std::mutex> ll(_changeListeners_l); for(auto i=_changeListeners.begin();i!=_changeListeners.end();++i) { - (*i)->onNetworkMemberUpdate(networkId,memberId,memberConfig); + (*i)->onNetworkMemberUpdate(this,networkId,memberId,memberConfig); } } } else if (memberId) { @@ -336,7 +336,7 @@ void DB::_memberChanged(nlohmann::json &old,nlohmann::json &memberConfig,bool in if ((initialized)&&((wasAuth)&&(!isAuth)&&(networkId)&&(memberId))) { std::lock_guard<std::mutex> ll(_changeListeners_l); for(auto i=_changeListeners.begin();i!=_changeListeners.end();++i) { - (*i)->onNetworkMemberDeauthorize(networkId,memberId); + (*i)->onNetworkMemberDeauthorize(this,networkId,memberId); } } } @@ -362,7 +362,7 @@ void DB::_networkChanged(nlohmann::json &old,nlohmann::json &networkConfig,bool if (initialized) { std::lock_guard<std::mutex> ll(_changeListeners_l); for(auto i=_changeListeners.begin();i!=_changeListeners.end();++i) { - (*i)->onNetworkUpdate(networkId,networkConfig); + (*i)->onNetworkUpdate(this,networkId,networkConfig); } } } |