aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 5060ea8ee..952ffb3a3 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -136,7 +136,7 @@ void openInterface(Interface * interface, int fd) {
}
void closeInterface(Interface * interface) {
- assert(interface->open);
+ if (!interface->open) return;
interface->open = 0;
@@ -254,6 +254,7 @@ static int proccessLineOfInput(Interface * interface) {
interface_max_command_list_size)
;
closeInterface(interface);
+ ret = COMMAND_RETURN_CLOSE;
}
else {
insertInListWithoutKey(interface->commandList,