Skip to content

Commit

Permalink
prevent multiple alive intervals running
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Oct 23, 2024
1 parent 02c0149 commit c57a9c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Elements.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ function vue_integration(::Type{M};
"
try {
if (Genie.Settings.webchannels_keepalive_frequency > 0) {
setInterval(keepalive, Genie.Settings.webchannels_keepalive_frequency);
clearInterval($vue_app_name.keepalive_interval);
$vue_app_name.keepalive_interval = setInterval(keepalive, Genie.Settings.webchannels_keepalive_frequency);
}
} catch (e) {
if (Genie.Settings.env === 'dev') {
Expand Down

2 comments on commit c57a9c6

@hhaensel
Copy link
Member

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 updated: JuliaRegistries/General/117919

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

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 v0.30.10 -m "<description of version>" c57a9c6018f2ec85a99f00a4eb9d2b04c6266048
git push origin v0.30.10

Please sign in to comment.