Skip to content

file-backend: avoid deadlock when portal op is canceled

Michael Catanzaro requested to merge mcatanzaro/cancellable-deadlock into master

Calling g_cancellable_disconnect() inside a cancelled handler is a guaranteed deadlock. Cancellables should only be canceled once, so we don't need to worry about a second cancellation occurring. I think it's sufficent to disconnect when the InitClosure is freed.

Possibly fixes #86 (closed), perhaps, hopefully?

Warning: this is speculative and not tested at all

Edited by Michael Catanzaro

Merge request reports