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

Fix hang when resuming thousands of episodes. #1353

Conversation

auouymous
Copy link
Member

When the number of episodes causes update_downloads_list() to exceed 1.5 seconds, the idle_add callback will never be called and cause gpodder to hang.

Fixes #1311.

@elelay
Copy link
Member

elelay commented Aug 4, 2022

Thanks for the fix!
Shouldn't it be Glib.timeout_add(GLib.PRIORITY_DEFAULT, 0, lambda: ...) because gobject.timeout_add seems deprecated?

@auouymous
Copy link
Member Author

@elelay Ya, I've had a note to replace the deprecated GObject.timeout_add and GObject.idle_add calls for a while now, and will get to it after this is fixed, which it sadly isn't yet.

When the number of episodes causes update_downloads_list() to exceed 1.5
seconds, the idle_add callback will never be called and cause gpodder to
hang.

Fixes gpodder#1311.
@auouymous auouymous force-pushed the fix-hang-when-resuming-thousands-of-episodes branch from 8ffe78a to f20f1b3 Compare August 13, 2022 07:05
@auouymous auouymous merged commit bab023a into gpodder:master Aug 13, 2022
@auouymous auouymous deleted the fix-hang-when-resuming-thousands-of-episodes branch August 13, 2022 07:06
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.

Getting error: expected string or bytes-like object
2 participants