X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=python3%2Fashd%2Futil.py;fp=python3%2Fashd%2Futil.py;h=bf32637c83262f0740041e971ad8c2d78ceff675;hp=3818e4b86b012f6847e2c26b45095cfc03021f1f;hb=91040fcec30ab62d358493cc391ca91bb56da8a2;hpb=e90d84e618a0f7982210de9f218a53da57c95aed 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: