GNOME Bugzilla – Bug 711247
Progress callbacks don't work with try_ methods
Last modified: 2013-11-14 08:33:23 UTC
Currently for each job type that implements progress callbacks, the progress_proxy is unref'd immediately after the backend's try method has run. This means that if the backend has an asynchronous callback which updates the progress, it doesn't work because the progress_proxy has been removed.
Created attachment 258717 [details] [review] daemon: Make progress callbacks work with try methods Before, for each job type that implements progress callbacks, the progress_proxy was being unref'd immediately after the backend's try or run method had run. This means that if the backend had an asynchronous callback which updated the progress, it wouldn't work because the progress_proxy had been removed. Fix this by unrefing the progress_proxy in the GVfsJobProgress class's finalize method.
Review of attachment 258717 [details] [review]: Looks good to me.
Pushed to master as e355526f0c6c00bbb7593d02accd4075c4da800f. Thanks!