Skip to content

Commit

Permalink
Don't throw ChannelNotFoundException
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Sep 27, 2022
1 parent 75cf25b commit bcf8810
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Genie"
uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e"
authors = ["Adrian Salceanu <[email protected]>"]
version = "5.6.1"
version = "5.6.2"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down
10 changes: 8 additions & 2 deletions src/WebThreads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ function broadcast(channels::Union{ChannelName,Vector{ChannelName}}, msg::String
isa(channels, Array) || (channels = ChannelName[channels])

for channel in channels
haskey(SUBSCRIPTIONS, channel) || throw(Genie.WebChannels.ChannelNotFoundException(channel))
if ! haskey(SUBSCRIPTIONS, channel)
@debug(Genie.WebChannels.ChannelNotFoundException(channel))
continue
end

for client in SUBSCRIPTIONS[channel]
except !== nothing && client == except && continue
Expand All @@ -240,7 +243,10 @@ function broadcast(channels::Union{ChannelName,Vector{ChannelName}}, msg::String
isa(channels, Array) || (channels = [channels])

for channel in channels
haskey(SUBSCRIPTIONS, channel) || throw(Genie.WebChannels.ChannelNotFoundException(channel))
if ! haskey(SUBSCRIPTIONS, channel)
@debug(Genie.WebChannels.ChannelNotFoundException(channel))
continue
end

for client in SUBSCRIPTIONS[channel]
try
Expand Down

2 comments on commit bcf8810

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/69048

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v5.6.2 -m "<description of version>" bcf8810ecf7b05ef1c36c9ffc274ec8203671ab6
git push origin v5.6.2

Please sign in to comment.