Skip to content

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.

@auouymous auouymous force-pushed the fix-hang-when-resuming-thousands-of-episodes branch from 988b8f0 to 8ffe78a Compare August 12, 2022 09:12
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