Diff between 92876b244ced01d03f3a7fe0429194d1a0e75125 and 7f779641113e8b8e2726aabfc708ddfe8d9dc88c
Changed Files
| File | Additions | Deletions | Status |
| src/shared/shell.c | +3 | -3 | modified |
Full Patch
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 2e094b8..d58e2d7 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1277,10 +1277,10 @@ bool bt_shell_attach(int fd)
io = io_new(fd);
- if (!data.mode)
+ if (!data.mode) {
io_set_read_handler(io, input_read, NULL, NULL);
-
- io_set_disconnect_handler(io, io_hup, NULL, NULL);
+ io_set_disconnect_handler(io, io_hup, NULL, NULL);
+ }
data.input = io;