aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c
index 289ed8066..7dbcd2dc3 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -367,6 +367,8 @@ static int processBytesRead(Interface * interface, int bytesRead)
*(buf_tail - 1) = '\0';
}
ret = processLineOfInput(interface);
+ if (interface->expired)
+ return ret;
interface->bufferPos = interface->bufferLength;
}
if (interface->bufferLength == INTERFACE_MAX_BUFFER_LENGTH) {