]> git.ipfire.org Git - thirdparty/tornado.git/commit
Make AddThreadEventLoop.close() idempotent
authorMin RK <benjaminrk@gmail.com>
Wed, 19 May 2021 07:58:09 +0000 (09:58 +0200)
committerMin RK <benjaminrk@gmail.com>
Wed, 19 May 2021 08:02:08 +0000 (10:02 +0200)
commit63ae59dda4bc3d83f7a1265f3c17807d4bc7e78f
treec35fe043443cb0f8e958897c9846242349de0fa3
parent289c834bedac07761f0cd33aee9854c4efb0c5e5
Make AddThreadEventLoop.close()  idempotent

according to spec: https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.close

The call to _wake_selector would fail with EBADF when close is called a second time
tornado/platform/asyncio.py
tornado/test/asyncio_test.py