diff options
author | Robin Gareus <robin@gareus.org> | 2019-02-27 16:44:39 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-02-27 16:44:39 +0100 |
commit | 2936a4d2bdbd411e05aaf9a0b26604d97e356e4c (patch) | |
tree | 86d1490fd0198ac31c1b4b89282f1197709cca7f /scripts/_vca_slave_assign.lua | |
parent | 72e6a79b690242ddd9f5c827cc6497623970befd (diff) |
Amend f474d0d4a9, remove explicit casts
Diffstat (limited to 'scripts/_vca_slave_assign.lua')
-rw-r--r-- | scripts/_vca_slave_assign.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/_vca_slave_assign.lua b/scripts/_vca_slave_assign.lua index 558456ed07..616c0abd98 100644 --- a/scripts/_vca_slave_assign.lua +++ b/scripts/_vca_slave_assign.lua @@ -56,8 +56,8 @@ function factory () return function () -- test if mst is already controlled by slv (directly or indirectly) -- 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)) or (not slv:to_route ():isnil () and slv:to_route ():slaved_to (mst)) then + -- if slv controlled by master, disconnect it + if (slv:slaved_to (mst)) then slv:to_slavable ():unassign (mst) else slv:to_slavable ():assign (mst) |