diff options
author | AGaliuzov <AGaliuzov@luxoft.com> | 2015-10-05 17:25:53 +0300 |
---|---|---|
committer | AGaliuzov <AGaliuzov@luxoft.com> | 2015-10-05 17:25:53 +0300 |
commit | cee517d5ff7f7aeecef453460ebeef79bdcef4e1 (patch) | |
tree | 6760e3ef466aa71c55d53ceef14cefd1ce61c6d7 | |
parent | 428ab669283c486cb628d922e0fb0e2e4ef00da4 (diff) | |
parent | baaec5c58f159a4b9af7e26928a94beb8d3535f1 (diff) | |
download | smartdevicelink-cee517d5ff7f7aeecef453460ebeef79bdcef4e1.tar.gz |
Merge pull request #234 from LuxoftSDL/hotfix/Core_is_dump_after_start
Fix crash when second instance of SDL is started
-rw-r--r-- | src/appMain/main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/appMain/main.cc b/src/appMain/main.cc index f392061c1..2c14bfa3b 100644 --- a/src/appMain/main.cc +++ b/src/appMain/main.cc @@ -172,8 +172,9 @@ int32_t main(int32_t argc, char** argv) { if (!main_namespace::LifeCycle::instance()->InitMessageSystem()) { LOG4CXX_FATAL(logger_, "Failed to init message system"); + main_namespace::LifeCycle::instance()->StopComponents(); DEINIT_LOGGER(); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } LOG4CXX_INFO(logger_, "InitMessageBroker successful"); |