I'm a bit worried that there are no extra cancellable checks inside the SSSClient implementation, isn't it possible that it's cancelled after the query finishes but before the json parsing is done? In that case the callbacks will still be called and could cause a crash.
108 + debug ("The search for channel %s was cancelled", scope_search.channel_id);
Will be more useful if you also log the current search_query.
57 + }, cancellable, sss_cb);
I'm a bit worried that there are no extra cancellable checks inside the SSSClient implementation, isn't it possible that it's cancelled after the query finishes but before the json parsing is done? In that case the callbacks will still be called and could cause a crash.
108 + debug ("The search for channel %s was cancelled", scope_search. channel_ id);
Will be more useful if you also log the current search_query.