mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 19:09:16 -04:00
11 lines
436 B
Python
11 lines
436 B
Python
--- aioh2/protocol.py.orig 2017-12-03 09:08:55 UTC
|
|
+++ aioh2/protocol.py
|
|
@@ -380,7 +380,7 @@ class H2Protocol(asyncio.Protocol):
|
|
if self._handler:
|
|
raise Exception('Handler was already set')
|
|
if handler:
|
|
- self._handler = asyncio.async(handler, loop=self._loop)
|
|
+ self._handler = async_task(handler, loop=self._loop)
|
|
|
|
def close_connection(self):
|
|
self._transport.close()
|