Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Fix list updating inifite loading #21

Merged
merged 1 commit into from
Oct 16, 2016

Conversation

japborst
Copy link

In some cases the updating of lists seemed to hang and spit out an handle is invalid error. For me, this revolved around the broadcast method that seemed to fail in some cases. From trial and error, I found that most cases it fails when a port has no sender object attached. This worked in most cases, but not all.

Mozilla and MSDN have good docs on messaging, but as it works well in Chrome this seems to be Edge-specific (for which I couldn't find any docs).

Perhaps this is not the best solution, as we don't know the actual cause of the fail... But I'd like to argue to have this implement anyhow, as any weird error shouldn't stop the function from broadcasting the message.

Would fix #18. Both applying a new list selection and visually updating lists by showing the progress seem to work now.

Copy link
Owner

@nicole-ashley nicole-ashley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good -- just an unintentional indenting change that needs to be fixed and then it can be merged.

};
broadcast: true,
msg: message
};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like an unintentional change here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was actually intended, makes more sense IMHO.

@nicole-ashley
Copy link
Owner

And sorry for the delay; GitHub notifications are still not being very helpful and alerting me when there is new activity.

@japborst
Copy link
Author

@nikrolls Just updated. I subscribed to watch this repo and receive notifications for all issues and PRs through email, but I believe you can change that in your account settings.

@nicole-ashley
Copy link
Owner

Hmm, maybe I have some settings on my account causing an issue. I'll check it out.

@nicole-ashley
Copy link
Owner

Thanks for the contribution! I'll update the releases tonight and get this out with it.

@nicole-ashley nicole-ashley merged commit f35a411 into nicole-ashley:master Oct 16, 2016
@japborst japborst deleted the patch-listupdating branch October 17, 2016 09:12
@gorhill gorhill mentioned this pull request Oct 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ublock update data bases broken. + no language selection.
2 participants