From: Fredrik Tolf Date: Mon, 24 Jul 2023 20:19:15 +0000 (+0200) Subject: Merge branch 'master' of moltke.seatribe.se:/usr/local/src/ashd X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=e9033020314283caf148bd2624da51ba4dfdc478;hp=d1a6f43ccb6b84b16cd765c6bee998b33ddffa78 Merge branch 'master' of moltke.seatribe.se:/usr/local/src/ashd --- 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: