mirror of
https://github.com/tmate-io/tmate.git
synced 2025-03-13 15:49:20 +01: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
@ -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…
Reference in New Issue
Block a user