[gnome-builder] vala-pack: wait to supervise until after queuing task
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vala-pack: wait to supervise until after queuing task
- Date: Fri, 26 Apr 2019 06:59:02 +0000 (UTC)
commit e248e86a2b4f5032a24c223f6c58109e60e686de
Author: Christian Hergert <chergert redhat com>
Date: Thu Apr 25 23:58:32 2019 -0700
vala-pack: wait to supervise until after queuing task
If the supervisor is started before the task, we risk leaving the task
in the queue forever if the spawn happens immediately (and it does).
This fixes an issue where the first code-indexing by the vala client
hangs forever (thus prevenging indexing).
src/plugins/vala-pack/ide-vala-client.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/vala-pack/ide-vala-client.vala b/src/plugins/vala-pack/ide-vala-client.vala
index 3c3abeb09..ae49f0895 100644
--- a/src/plugins/vala-pack/ide-vala-client.vala
+++ b/src/plugins/vala-pack/ide-vala-client.vala
@@ -342,12 +342,12 @@ namespace Ide
switch (state) {
default:
state = State.SPAWNING;
- supervisor.start ();
var cb = new GetContextCB ();
cb.source_func = get_client_async.callback;
lock (get_client) {
get_client.push_tail ((owned) cb);
}
+ supervisor.start ();
yield;
return rpc_client;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]