telepathyClient: Add another 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.
This commit is contained in:
Jasper St. Pierre 2011-06-28 12:06:54 -04:00
parent cbb9a7ab96
commit 6f515f2327

View File

@ -149,7 +149,9 @@ Client.prototype = {
if (this._tpClient.is_handling_channel(channel)) { if (this._tpClient.is_handling_channel(channel)) {
// The chat box has been destroyed so it can't // The chat box has been destroyed so it can't
// handle the channel any more. // handle the channel any more.
channel.close_async(null); channel.close_async(function(src, result) {
channel.close_finish(result);
});
} }
delete this._sources[channel.get_object_path()]; delete this._sources[channel.get_object_path()];