[hotssh] gssh: Attach socket source to provided maincontext, not default
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hotssh] gssh: Attach socket source to provided maincontext, not default
- Date: Mon, 16 Dec 2013 16:09:08 +0000 (UTC)
commit cb0e1f4ca27d2c03204557f220ed5c18c6b0a093
Author: Colin Walters <walters verbum org>
Date: Wed Dec 11 13:05:59 2013 -0500
gssh: Attach socket source to provided maincontext, not default
Otherwise the whole model is broken and we may do calls in the wrong
thread, etc.
libgssh/gssh-connection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgssh/gssh-connection.c b/libgssh/gssh-connection.c
index 48de946..43f8d7f 100644
--- a/libgssh/gssh-connection.c
+++ b/libgssh/gssh-connection.c
@@ -200,7 +200,7 @@ recalculate_socket_state (GSshConnection *self)
conditions,
self->cancellable);
g_source_set_callback (self->socket_source, (GSourceFunc)on_socket_ready, self, NULL);
- g_source_attach (self->socket_source, NULL);
+ g_source_attach (self->socket_source, self->maincontext);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]