Skip to content

Commit

Permalink
fix(place/meet): warn about failed routing attempts
Browse files Browse the repository at this point in the history
could be an issue with input or output names
  • Loading branch information
stakach committed Dec 11, 2024
1 parent 8a7b239 commit 6a56bdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/place/meet.cr
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class Place::Meet < PlaceOS::Driver
end

# we want to unroute any signal going to the display
# or if it's a direct connection, we want to mute the display
# or if it's a direct connection, we want to mute the display.
@[Description("blank a display / output, sometimes called a video mute")]
def unroute(output : String)
route("MUTE", output)
Expand Down
8 changes: 7 additions & 1 deletion drivers/place/router/core.cr
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,13 @@ module Place::Router::Core
end

spawn {
routes.each_value { |route| route_signal(*route) }
routes.each_value do |route|
begin
route_signal(*route)
rescue error
logger.warn(exception: error) { "issue routing: #{route[0]}=>#{route[1]}" }
end
end
}
end

Expand Down

0 comments on commit 6a56bdf

Please sign in to comment.