From d269d5ac532b84d47cdf52d05989dc99ed096386 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 11 Apr 2019 16:37:58 +0800 Subject: [PATCH] 100 lines backlog --- client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.py b/client.py index b1e9161..b1fa64e 100755 --- a/client.py +++ b/client.py @@ -59,7 +59,8 @@ if __name__ == '__main__': lines.pop(0) while True: nlines = f.read().split('\n') - if len(nlines) == 1 and nlines[0] == '': + if not lines and \ + len(nlines) == 1 and nlines[0] == '': continue else: lines += nlines