[gnome-builder] code-index: short-circuit if context was lost
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code-index: short-circuit if context was lost
- Date: Fri, 21 Jun 2019 23:30:58 +0000 (UTC)
commit bc0f8ca9d5043d712f6e1f8effcab04a6de75293
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 21 16:30:30 2019 -0700
code-index: short-circuit if context was lost
src/plugins/code-index/ide-code-index-symbol-resolver.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/code-index/ide-code-index-symbol-resolver.c
b/src/plugins/code-index/ide-code-index-symbol-resolver.c
index 358aceca9..263db0a21 100644
--- a/src/plugins/code-index/ide-code-index-symbol-resolver.c
+++ b/src/plugins/code-index/ide-code-index-symbol-resolver.c
@@ -53,6 +53,9 @@ ide_code_index_symbol_resolver_lookup_cb (GObject *object,
return;
}
+ if (ide_task_return_error_if_cancelled (task))
+ return;
+
context = ide_object_get_context (IDE_OBJECT (self));
g_assert (IDE_IS_CONTEXT (context));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]