mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +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)
|
if (outputPortToUse == null)
|
||||||
{
|
{
|
||||||
// it's a sink device
|
// 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)
|
else if (destination is IRouting)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user