Skip to content

Commit

Permalink
fix hang when closing adb reverse tunnel
Browse files Browse the repository at this point in the history
According to python/cpython#111336, asyncio.Server.wait_closed is intended to wait for: the server is closed and there are no more active connections.
It should not wait for connections to finish when closing the adb reverse tunnel, so do not call wait_closed.

Signed-off-by: PeterD1524 <[email protected]>
  • Loading branch information
PeterD1524 committed Dec 16, 2024
1 parent 06f79f7 commit 258137b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/symmetrical_doodle/adb_tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ async def close(self):
f"localabstract:{self.device_socket_name}"
)
self.server.close()
await self.server.wait_closed()
await self.close_connections()

async def close_connections(self):
Expand Down

0 comments on commit 258137b

Please sign in to comment.