Commit 2f6dc7b3 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-2678] Correção para que a propriedade da conexão 'legacydelegate ==...

[OPENBUS-2678] Correção para que a propriedade da conexão 'legacydelegate == "originator"' seja respeitada

git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_00@158445 ae0415b3-e90b-0410-900d-d0be9363c56b
parent ccbe2617
......@@ -679,11 +679,11 @@ function Context:createConnection(host, port, props)
local legacy = not props.nolegacy
local delegorig
if legacy then
local delegorig = props.legacydelegate
if delegorig == "originator" then
local value = props.legacydelegate
if value == "originator" then
delegorig = true
elseif delegorig ~= nil and delegorig ~= "caller" then
InvalidPropertyValue{property="legacydelegate",value=delegorig}
elseif value ~= nil and value ~= "caller" then
InvalidPropertyValue{property="legacydelegate",value=value}
end
legacy = busaddress2component(orb, host, port, "openbus_v1_05")
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment