diff options
author | Kevron Rees <tripzero.kev@gmail.com> | 2013-03-18 23:34:33 -0700 |
---|---|---|
committer | Kevron Rees <tripzero.kev@gmail.com> | 2013-03-18 23:34:33 -0700 |
commit | 7807d962ebcc96ba5d512333ed3212ede3a691cc (patch) | |
tree | 15c555ded5bc9e2078908d88110c369f68d44dea | |
parent | 2874af233cdd5aa8e30ca3b3af00764e795dfb90 (diff) | |
download | automotive-message-broker-7807d962ebcc96ba5d512333ed3212ede3a691cc.tar.gz |
getProperty will only return first plugin that supports that property
-rw-r--r-- | ambd/core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ambd/core.cpp b/ambd/core.cpp index 8efc624e..0f07abd6 100644 --- a/ambd/core.cpp +++ b/ambd/core.cpp @@ -187,6 +187,10 @@ AsyncPropertyReply *Core::getPropertyAsync(AsyncPropertyRequest request) if(ListPlusPlus<VehicleProperty::Property>(&properties).contains(request.property) && supportsGet) { src->getPropertyAsync(reply); + + /** right now the owner of the reply becomes the requestor that called this method. + * reply will become invalid after the first reply. */ + return reply; } } |