diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-09-05 18:10:27 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-09-05 18:10:27 +0100 |
commit | cac7727c18341e977c12e42e5dcea4a86c4b90a4 (patch) | |
tree | ecba2ccdf7650a5c2fe3443d1d6a049e38611fbf | |
parent | 3d05bdac0d8bf77f310ecb6558121cd50bed7fbb (diff) |
C2SPorter: clear up English properly.
I feel threatened.
-rw-r--r-- | wocky/wocky-c2s-porter.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/wocky/wocky-c2s-porter.c b/wocky/wocky-c2s-porter.c index 32760ba..c3f167c 100644 --- a/wocky/wocky-c2s-porter.c +++ b/wocky/wocky-c2s-porter.c @@ -1159,9 +1159,10 @@ remote_connection_closed (WockyC2SPorter *self, WockyC2SPorterPrivate *priv = self->priv; gboolean error_occured = TRUE; - /* Completing a close operation, firing the remote-error signal could make the - * user unref the porter. Ref it so, in such case, it would stay alive until - * we have finished threatening the error. */ + /* Completing a close operation and firing the remote-closed/remote-error + * signals could make the library user unref the porter. So we take a + * reference to ourself for the duration of this function. + */ g_object_ref (self); /* Complete pending send IQ operations as we won't be able to receive their @@ -1301,9 +1302,10 @@ stanza_received_cb (GObject *source, return; } - /* Handling a stanza could make the user unref the porter. - * Ref it so, in such case, it would stay alive until we have finished - * threatening the stanza. */ + /* Calling out to a stanza handler could make the library user unref the + * porter; hence, we take a reference to ourself for the rest of the + * function. + */ g_object_ref (self); queue_or_handle_stanza (self, stanza); |