From f474d0d4a91c8c1a94306dd3b9af1b77ef4cf1ba Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 27 Feb 2019 16:34:48 +0100 Subject: [PATCH] Update Lua VCA example script --- scripts/_vca_slave_assign.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_vca_slave_assign.lua b/scripts/_vca_slave_assign.lua index 62055b55cb..558456ed07 100644 --- a/scripts/_vca_slave_assign.lua +++ b/scripts/_vca_slave_assign.lua @@ -57,7 +57,7 @@ function factory () return function () -- if so, don't allow the connection 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 (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) else slv:to_slavable ():assign (mst)