Skip to content

Conversation

@acolomb
Copy link
Member

@acolomb acolomb commented Jul 15, 2025

Raise a RuntimeError when a SYNC transmission task has previously been
started. Make sure to clear the internal _task attribute when
stopping, to make the check work.

acolomb added 2 commits July 15, 2025 09:15
Raise a RuntimeError when a SYNC transmission task has previously been
started.  Make sure to clear the internal _task attribute when
stopping, to make the check work.
@acolomb acolomb linked an issue Jul 15, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@acolomb acolomb marked this pull request as ready for review July 15, 2025 07:23
@acolomb
Copy link
Member Author

acolomb commented Jul 15, 2025

I squeezed some more fixes in, regarding type hints and possible exceptions (now listed in the docstrings).

@acolomb acolomb changed the title sync: Prevent from starting periodic task when already running (fixes #582) SyncProducer: Prevent from starting another periodic task (fixes #582) Jul 15, 2025
@acolomb acolomb added this to the v3.0.0 milestone Jul 15, 2025
@acolomb acolomb merged commit 829f462 into canopen-python:master Sep 8, 2025
4 of 5 checks passed
@acolomb acolomb deleted the sync-prevent-repeated-start branch September 8, 2025 21:08
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.

Reference to task is lost when starting a second Sync periodic

1 participant