summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Keeler <jacob.keeler@livioradio.com>2018-03-01 16:26:05 -0500
committerGitHub <noreply@github.com>2018-03-01 16:26:05 -0500
commitaaa9e66237066a135b92607413638be4ec829f35 (patch)
treebd401008f107078c224d9c07ad50832c5ad2b777
parent6212599da217e95899d63d4b33088082489841bd (diff)
downloadsdl_core-aaa9e66237066a135b92607413638be4ec829f35.tar.gz
Check result of TransportManager Init function
-rw-r--r--src/appMain/life_cycle.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/appMain/life_cycle.cc b/src/appMain/life_cycle.cc
index 3bf0e62f87..a03ea3a8ee 100644
--- a/src/appMain/life_cycle.cc
+++ b/src/appMain/life_cycle.cc
@@ -180,7 +180,10 @@ bool LifeCycle::StartComponents() {
// [TM -> CH -> AM], otherwise some events from TM could arrive at nowhere
app_manager_->set_protocol_handler(protocol_handler_);
- transport_manager_->Init(*last_state_);
+ if (!transport_manager_->Init(*last_state_)) {
+ LOG4CXX_ERROR(logger_, "Transport manager init failed.");
+ return false;
+ }
// start transport manager
transport_manager_->Visibility(true);