summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLutz Bichler <Lutz.Bichler@bmw.de>2015-02-02 11:28:24 +0100
committerLutz Bichler <Lutz.Bichler@bmw.de>2015-02-02 11:28:24 +0100
commit2804f6190cd9f613cc69f768f3789b88e0ad7cc4 (patch)
treef7dc610566b11d1e23e06410c13ab3fd280a0970
parentb6248d63cfa4551f722f1406e628a3f44e46cda0 (diff)
downloadvSomeIP-2804f6190cd9f613cc69f768f3789b88e0ad7cc4.tar.gz
Corrected connection state of routing manager proxy. It must be
considered connected as long as the sender endpoint (to the routing manager stub) is connected.
-rw-r--r--implementation/routing/src/routing_manager_proxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/implementation/routing/src/routing_manager_proxy.cpp b/implementation/routing/src/routing_manager_proxy.cpp
index f498cf4..d874f05 100644
--- a/implementation/routing/src/routing_manager_proxy.cpp
+++ b/implementation/routing/src/routing_manager_proxy.cpp
@@ -294,7 +294,7 @@ void routing_manager_proxy::notify(
}
void routing_manager_proxy::on_connect(std::shared_ptr<endpoint> _endpoint) {
- is_connected_ = (_endpoint == sender_);
+ is_connected_ = is_connected_ || (_endpoint == sender_);
if (is_connected_ && is_started_) {
register_application();
}
@@ -309,7 +309,7 @@ void routing_manager_proxy::on_disconnect(std::shared_ptr<endpoint> _endpoint) {
void routing_manager_proxy::on_message(const byte_t *_data, length_t _size,
endpoint *_receiver) {
-#if 1
+#if 0
std::stringstream msg;
msg << "rmp::on_message: ";
for (int i = 0; i < _size; ++i)