X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=python3%2Fashd%2Futil.py;h=bf32637c83262f0740041e971ad8c2d78ceff675;hb=HEAD;hp=3818e4b86b012f6847e2c26b45095cfc03021f1f;hpb=1f3d7aa314fa55a238be0940a1cd244e4671fc7d;p=ashd.git diff --git a/python3/ashd/util.py b/python3/ashd/util.py index 3818e4b..bf32637 100644 --- a/python3/ashd/util.py +++ b/python3/ashd/util.py @@ -161,7 +161,10 @@ def serveloop(handler, sock = 0): and is called once for each received request. """ while True: - req = proto.recvreq(sock) + try: + req = proto.recvreq(sock) + except InterruptedError: + continue if req is None: break try: