From 5c6e5ef6d003e44d670cec7235c3b7522726c526 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 23 Jun 2011 19:22:43 -0400 Subject: [PATCH] telepathyClient: Don't ignore GAsyncReadyCallback This is better for memory management, and we'll see any errors this way, which we may eventually want to do something with. We need to make this change because gjs recently started checking (allow-none) on callbacks. --- js/ui/telepathyClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index c4090b68a..5fb7fb0b9 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -382,7 +382,7 @@ Source.prototype = { } let msg = Tp.ClientMessage.new_text(type, text); - this._channel.send_message_async(msg, 0, null); + this._channel.send_message_async(msg, 0, Lang.bind(this, function (src, result) { this._channel.send_message_finish(src, result); })); }, _presenceChanged: function (contact, presence, status, message) {