Skip to content

Commit e7cdd39

Browse files
committed
Merge Swind#60
Merge remote-tracking branch 'base/pr/60' into recursive-push
2 parents e02ea42 + d686421 commit e7cdd39

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ppadb/connection_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ async def connect(self):
3333
self.reader, self.writer = await asyncio.open_connection(self.host, self.port)
3434

3535
except (OSError, asyncio.TimeoutError) as e:
36+
await self.close()
3637
raise RuntimeError("ERROR: connecting to {}:{} {}.\nIs adb running on your computer?".format(self.host, self.port, e))
3738

3839
return self

0 commit comments

Comments
 (0)