Skip to content

Commit

Permalink
core.app: fix bug in reconfiguration
Browse files Browse the repository at this point in the history
If an app network is re-configured, the 'keep' action copies the
existing input and output tables, but the code that processes the
links assumes that these tables are empty in the new app table.  This
causes the array-part of the tables to be duplicated.
  • Loading branch information
alexandergall committed Jul 27, 2017
1 parent 23ffbb5 commit 50ba67d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/app.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ function apply_config_actions (actions, conf)
end
function ops.keep (name)
new_app_table[name] = app_table[name]
-- Clear input/output tables, they will be re-populated below
new_app_table[name].output = {}
new_app_table[name].input = {}
end
function ops.start (name)
local class = conf.apps[name].class
Expand Down

0 comments on commit 50ba67d

Please sign in to comment.