weston-terminal: Make exit path a little more obvious

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 2 years ago
parent f9e54ab2f8
commit fc4fb9fb92
  1. 6
      clients/terminal.c

@ -3054,9 +3054,11 @@ io_handler(struct task *task, uint32_t events)
}
len = read(terminal->master, buffer, sizeof buffer);
if (len < 0)
if (len < 0) {
terminal_destroy(terminal);
else
return;
}
terminal_data(terminal, buffer, len);
}

Loading…
Cancel
Save