X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=python3%2Fashd%2Futil.py;h=bf32637c83262f0740041e971ad8c2d78ceff675;hb=eaefded0a959b59f441d50cfb30fc08497078fe1;hp=3818e4b86b012f6847e2c26b45095cfc03021f1f;hpb=c221b22d61df5882462eab41e5c79ae2a3ea9642;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: