From: Eric S. Raymond Date: Thu, 27 Sep 2012 09:21:26 +0000 (-0400) Subject: Fix patch by nenolod. X-Git-Tag: 1.0~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6e9981c054193becd1b9cee06beec026de0aaa76;p=irker.git Fix patch by nenolod. --- diff --git a/irker b/irker index efd7dab..04bac57 100755 --- 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):