Skip to content

Fix repeated log event subscription bug#439

Merged
timyhac merged 1 commit into
libplctag:mainfrom
rowan-walsh:bug/log-event-subs
Feb 1, 2025
Merged

Fix repeated log event subscription bug#439
timyhac merged 1 commit into
libplctag:mainfrom
rowan-walsh:bug/log-event-subs

Conversation

@rowan-walsh

Copy link
Copy Markdown
Contributor

Ran into this bug when a logging event was added to LibPlcTag.LogEvent more than once. This led to an error from plc_tag_register_logger being called more than once. Seems like the alreadySubscribedToEvents flag wasn't being set true after the first subscription.

The bug was caused by the alreadySubscribedToEvents flag not being set
after a successful log event subscription. This meant that
plc_tag_register_logger() could be called multiple times, causing an
error.
@timyhac timyhac merged commit 1db8318 into libplctag:main Feb 1, 2025
@timyhac

timyhac commented Feb 1, 2025

Copy link
Copy Markdown
Collaborator

Thanks! Not sure how that happened...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants