Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insteon: Pass Message Clearing Decision to on_read_write_aldb #260

Merged
merged 2 commits into from
Oct 12, 2013

Conversation

krkeegan
Copy link
Collaborator

on_read_write_aldb now returns a 1/0 corresponding to whether the current message should be cleared.

When a bad message arrived, on_read_write_aldb attempted to requeue the message that was currently pending. However, _process_message did not clear the pending message until after this routine was run. As a result, a new message was not queued because it was duplicative, but then the current message was cleared. This resulted in stalling the message queue.

Fixes bug #258

on_read_write_aldb now returns a 1/0 corresponding to whether the current message should be cleared.

When a bad message arrived, on_read_write_aldb attempted to requeue the message that was currently pending.  However, _process_message did not clear the pending message until after this routine was run.  As a result, a new message was not queued because it was duplicative, but then the current message was cleared.  This resulted in stalling the message queue.

Fixes bug hollie#258
Missed one instance in which the queued message should not be cleared.
Should not be cleared on an unhandled mem action either.

Further Fix to hollie#258
krkeegan added a commit that referenced this pull request Oct 12, 2013
Insteon: Pass Message Clearing Decision to on_read_write_aldb
@krkeegan krkeegan merged commit ba5b1fe into hollie:master Oct 12, 2013
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.

1 participant