mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-09 01:35:02 +00:00
added check when adding sink device for if the device is actually a sink
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user