[hotssh] gssh: GSshChannelOutputStream: Fix obvious thinko in synchronous reads
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hotssh] gssh: GSshChannelOutputStream: Fix obvious thinko in synchronous reads
- Date: Mon, 16 Dec 2013 16:09:03 +0000 (UTC)
commit 9d458b072aee9257792eea084dc91c6662218a6c
Author: Colin Walters <walters verbum org>
Date: Thu Dec 5 16:48:48 2013 -0500
gssh: GSshChannelOutputStream: Fix obvious thinko in synchronous reads
So I'm not sure we can really support synchronous operations sanely...
we need to iterate the main context that's actually doing the socket
poll. But fix this obvious thinko.
libgssh/gssh-channel-input-stream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgssh/gssh-channel-input-stream.c b/libgssh/gssh-channel-input-stream.c
index edf116d..a9a1c80 100644
--- a/libgssh/gssh-channel-input-stream.c
+++ b/libgssh/gssh-channel-input-stream.c
@@ -164,7 +164,7 @@ gssh_channel_input_stream_read (GInputStream *stream,
self->sync_context = g_main_context_new ();
g_main_context_push_thread_default (self->sync_context);
self->sync_error = NULL;
- self->sync_running = FALSE;
+ self->sync_running = TRUE;
gssh_channel_input_stream_read_async (stream, buffer, count,
G_PRIORITY_DEFAULT, cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]