Commit 7e403f19 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

Merge from branch 02_00_01 (160254)


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@160255 ae0415b3-e90b-0410-900d-d0be9363c56b
parents aea2e115 5707f5f0
......@@ -465,10 +465,15 @@ function Connection:receivereply(request)
login = invlogin.id,
entity = invlogin.entity,
})
local ok, result
local logins = self.LoginRegistry
NoInvalidLoginHandling[thread] = true
local ok, result = pcall(logins.getLoginValidity, logins, invlogin.id)
NoInvalidLoginHandling[thread] = nil
if logins ~= nil then
NoInvalidLoginHandling[thread] = true
ok, result = pcall(logins.getLoginValidity, logins, invlogin.id)
NoInvalidLoginHandling[thread] = nil
else -- we aren't logged
ok, result = true, 0
end
if ok and result > 0 then
log:exception(msg.GotFalseInvalidLogin:tag{
invlogin = invlogin.id,
......
......@@ -40,7 +40,7 @@ local msg = require "openbus.util.messages"
local oo = require "openbus.util.oo"
local class = oo.class
local sandbox = require "openbus.util.sandbox"
local newsandbox = sandbox.create()
local newsandbox = sandbox.create
......
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