mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
added check when adding sink device for if the device is actually a sink
This commit is contained in:
parent
b39afe2f50
commit
305fe5c372
1 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,8 @@ namespace PepperDash.Essentials.Core
|
|||
if (outputPortToUse == null)
|
||||
{
|
||||
// it's a sink device
|
||||
routeTable.Routes.Add(new RouteSwitchDescriptor(goodInputPort));
|
||||
if (destination is IRoutingSinkWithSwitching)
|
||||
routeTable.Routes.Add(new RouteSwitchDescriptor(goodInputPort));
|
||||
}
|
||||
else if (destination is IRouting)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue