[gnome-code-assistance] [backends/jscommon] Flush all messages before quitting
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/jscommon] Flush all messages before quitting
- Date: Sat, 16 Nov 2013 14:13:42 +0000 (UTC)
commit 83974483ec971eaf6ad56758bd9f71f496b90551
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Nov 16 15:13:00 2013 +0100
[backends/jscommon] Flush all messages before quitting
.../gnome/codeassistance/transport_dbus.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/backends/jscommon/gnome/codeassistance/transport_dbus.js
b/backends/jscommon/gnome/codeassistance/transport_dbus.js
index 83c6287..0ab88bc 100644
--- a/backends/jscommon/gnome/codeassistance/transport_dbus.js
+++ b/backends/jscommon/gnome/codeassistance/transport_dbus.js
@@ -157,9 +157,8 @@ Service.prototype = {
}, function() {
if (retval)
{
- GLib.idle_add(GLib.PRIORITY_LOW, Lang.bind(this, function() {
- this.main.quit();
- }));
+ this.conn.flush_sync(null);
+ this.main.quit();
}
});
}
@@ -436,6 +435,12 @@ Server.prototype = {
invocation.return_dbus_error('org.gnome.CodeAssist.v1.js.ValueError',
'Failed to encode return value in `' + errMsg + '\': ' +
e.message);
+
+ if (finishedcb)
+ {
+ finishedcb.call(this);
+ }
+
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]