diff options
author | ZhdanovP <pzhdanov@luxoft.com> | 2018-08-30 14:29:34 +0300 |
---|---|---|
committer | ZhdanovP <pzhdanov@luxoft.com> | 2018-08-30 14:29:34 +0300 |
commit | 0e93d40c69a0e1cef54de62ea74a295a0fc3ce63 (patch) | |
tree | 6c14350196d68dca668624cdcafc01346d62e08a | |
parent | 28648f6012e225f3aa36e3a8263f9c8301ba3283 (diff) | |
download | sdl_core-fix/SDL_does_not_respond_NACK_to_second_request.tar.gz |
SDL does not respond NACK to second requestfix/SDL_does_not_respond_NACK_to_second_request
- service is already exists
- service require the protection
- service don't protected
- service_type is Audio (or Video)
in this case SDL starts new protection with the same service_type on the same connection_key but shouldn't.
-rw-r--r-- | src/components/connection_handler/src/connection.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/connection_handler/src/connection.cc b/src/components/connection_handler/src/connection.cc index 5a35919c6c..5abf51d5fc 100644 --- a/src/components/connection_handler/src/connection.cc +++ b/src/components/connection_handler/src/connection.cc @@ -220,6 +220,15 @@ bool Connection::AddNewService(uint8_t session_id, << static_cast<int>(service_type)); return false; } + if (helpers::Compare<protocol_handler::ServiceType, + helpers::EQ, + helpers::ONE>( + service_type, + protocol_handler::ServiceType::kAudio, + protocol_handler::ServiceType::kMobileNav)) { + return false; + } + // For unproteced service could be start protection return true; #else |