Fix patch by nenolod.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 27 Sep 2012 09:21:26 +0000 (05:21 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 27 Sep 2012 09:21:26 +0000 (05:21 -0400)
irker

diff --git a/irker b/irker
index efd7dab93e45e5fab143f246bd40775a90367ba1..04bac579216c367d6bfe9a6130fca7ae0dc40c87 100755 (executable)
--- a/irker
+++ b/irker
@@ -333,7 +333,10 @@ class Irker:
 class IrkerTCPHandler(SocketServer.StreamRequestHandler):
     def handle(self):
         while True:
-            irker.handle(self.rfile.readline().strip())
+            line = self.rfile.readline()
+            if not line:
+                break
+            irker.handle(line.strip())
 
 class IrkerUDPHandler(SocketServer.BaseRequestHandler):
     def handle(self):