Skip to content

Bug fix: Cancel tasks when they are removed from the task queue#580

Merged
philips77 merged 3 commits intomainfrom
bugfix/notify-cancelled-tasks
Aug 29, 2024
Merged

Bug fix: Cancel tasks when they are removed from the task queue#580
philips77 merged 3 commits intomainfrom
bugfix/notify-cancelled-tasks

Conversation

@philips77
Copy link
Copy Markdown
Contributor

This PR fixes #552.

When the device gets disconnected while there are some tasks enqueued, the cancelled tasks will be notified and .fail(...) or .invalid(...) method will be called.

Also, all the tasks of a task queue (AtomicQueueRequest or ReliableWriteRequest) will be notified when they are removed from the queue (for example on disconnection, or when value validation fails during reliable write).

@philips77 philips77 merged commit d4b1ef4 into main Aug 29, 2024
@philips77 philips77 deleted the bugfix/notify-cancelled-tasks branch August 29, 2024 10:27
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.

No response from writeCharacteristic

1 participant