Advertisement
rotrevrep

Cancellable never cancelled

Oct 14th, 2015
3,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.19 KB | None | 0 0
  1. var cancellable = new GLib.Cancellable ();
  2. context.cancelled.connect(() => {
  3.     cancellable.cancel ();
  4. });
  5. /* ... */
  6. if (!cancellable.is_cancelled ()) {
  7.     this.results.present (this, context);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement