Update Lua VCA example script
This commit is contained in:
parent
20c36c9979
commit
f474d0d4a9
@ -57,7 +57,7 @@ function factory () return function ()
|
|||||||
-- if so, don't allow the connection
|
-- if so, don't allow the connection
|
||||||
if (not slv:to_slavable ():assigned_to (Session:vca_manager(), mst)) then
|
if (not slv:to_slavable ():assigned_to (Session:vca_manager(), mst)) then
|
||||||
-- if slv is a VCA and is controlled by master, disconnect it
|
-- if slv is a VCA and is controlled by master, disconnect it
|
||||||
if (not slv:to_vca ():isnil () and slv:to_vca ():slaved_to (mst)) then
|
if (not slv:to_vca ():isnil () and slv:to_vca ():slaved_to (mst)) or (not slv:to_route ():isnil () and slv:to_route ():slaved_to (mst)) then
|
||||||
slv:to_slavable ():unassign (mst)
|
slv:to_slavable ():unassign (mst)
|
||||||
else
|
else
|
||||||
slv:to_slavable ():assign (mst)
|
slv:to_slavable ():assign (mst)
|
||||||
|
Loading…
Reference in New Issue
Block a user