We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791b5b0 commit 3338548Copy full SHA for 3338548
app/contacts/contact_tcp.py
@@ -32,14 +32,7 @@ async def stop(self):
32
self.op_loop_task.cancel()
33
if self.server_task:
34
self.server_task.cancel()
35
- try:
36
- await self.op_loop_task
37
- except asyncio.CancelledError:
38
- self.log.debug('Canceled TCP contact operation loop task.')
39
40
- await self.server_task
41
42
- self.log.debug('Canceled TCP contact server task.')
+ _ = await asyncio.gather(self.op_loop_task, self.server_task, return_exceptions=True)
43
44
async def start_server(self, host, port):
45
try:
0 commit comments