Commit 43c1db65 authored by Bernardo Quaresma Dias's avatar Bernardo Quaresma Dias
Browse files

Atualização de ponte de reconexão

INSTMPA-933
parent 068f3389
......@@ -2,9 +2,9 @@
-- Copyright (C) 2003-2021 Tecgraf/PUC-Rio, PETROBRAS S/A
-- Instituto Tecgraf <mpa@tecgraf.puc-rio.br>
-- Arquivo gerado pelo programa MPA
-- Verso: 6.5
-- Verso: 6.7
-- Arquivo: lib-reconnect.mpad
-- Data: 28/04/2021 15:01:59
-- Data: 10/11/2021 10:08:38
-- =============================================================================
MPA_5_0 = true
......@@ -369,8 +369,8 @@ Diagrams = {
},
y = {
4160,
4260,
4660,
4160,
4760,
4760,
},
},
......
......@@ -42,9 +42,13 @@ func{ id = "reconnect_bridge", name = "Reconectar Ponte",
return ret
end
else
local restart = pt_bridge.bridge.restart
local bridge = pt_bridge.bridge
while(bridge.__object) do
bridge = bridge.__object
end
local restart = bridge.restart
if restart then
ok, ret = pcall(restart, pt_bridge.bridge)
ok, ret = pcall(restart, bridge)
if not ok then return ret end
end
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