Skip to content

Commit

Permalink
Add GIL for callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrn committed Jul 13, 2020
1 parent c0dad5d commit f8cf8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylibsshext/channel.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cdef int _process_outputs(libssh.ssh_session session,
void *data,
libssh.uint32_t len,
int is_stderr,
void *userdata):
void *userdata) with gil:
if len == 0:
return 0
data_b = <bytes>(<char *>data)[:len]
Expand Down

0 comments on commit f8cf8ff

Please sign in to comment.