summaryrefslogtreecommitdiffstats
path: root/gobject/pygiochannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/pygiochannel.c')
-rw-r--r--gobject/pygiochannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/pygiochannel.c b/gobject/pygiochannel.c
index d161c10..ba3cfa1 100644
--- a/gobject/pygiochannel.c
+++ b/gobject/pygiochannel.c
@@ -266,7 +266,7 @@ py_io_channel_write_chars(PyGIOChannel* self, PyObject *args, PyObject *kwargs)
pyg_unblock_threads();
status = g_io_channel_write_chars(self->channel, buf, buf_len, &count, &error);
- pyg_unblock_threads();
+ pyg_block_threads();
if (pyg_error_check(&error))
return NULL;