summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libidc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libidc.c b/libidc.c
index 00cc7c2..01013a7 100644
--- a/libidc.c
+++ b/libidc.c
@@ -254,6 +254,10 @@ int select_on_everything() {
// if(hack == 2) {*t='\r'; t++;}
// *t='\n';
//}
+ if(idc.fds[i].read_lines_for_us == 0) { //this /could/ be changed by a line handler setting this flag
+ //we need to bail out of the loop that is getting lines from the buffer
+ break;
+ }
}
}//end of looping over each line in backlog
}//end of the loop over every select()d fd