mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Avoid crashes when the ssh connction dies
We might want to deal with reconnections soon
This commit is contained in:
parent
c1846177fc
commit
64e14eaff5
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,9 @@ static void on_encoder_write(void *userdata, struct evbuffer *buffer)
|
|||
ssize_t len, written;
|
||||
unsigned char *buf;
|
||||
|
||||
if (!client->channel)
|
||||
return;
|
||||
|
||||
for(;;) {
|
||||
len = evbuffer_get_length(buffer);
|
||||
if (!len)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue