Diff between f40565d5a944527bf44998271b02ab0aca643b40 and 9cafbbb18150df2ecddd78bfbdf189fd3a05a479

Changed Files

File Additions Deletions Status
src/shared/shell.c +1 -4 modified

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index f1e87d0..1fec58d 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -966,10 +966,7 @@ bool bt_shell_attach(int fd)
 			return true;
 		}
 
-		if (!data.timeout) {
-			bt_shell_detach();
-			mainloop_quit();
-		} else
+		if (data.timeout)
 			timeout_add(data.timeout * 1000, shell_quit, NULL,
 								NULL);
 	}