diff options
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 61938e9..34cc625 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -1114,7 +1114,12 @@ class BaseEventLoop(events.AbstractEventLoop): self.call_soon(ssl_protocol.connection_made, transport) self.call_soon(transport.resume_reading) - await waiter + try: + await waiter + except Exception: + transport.close() + raise + return ssl_protocol._app_transport async def create_datagram_endpoint(self, protocol_factory, |