Skip to content

Commit

Permalink
manual merge pr #124
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed May 20, 2024
1 parent 3f7f6b0 commit 6e6793f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adbutils/_adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def _safe_connect(self):
try:
return self._create_socket()
except AdbConnectionError:
subprocess.run([adb_path(), "start-server"], timeout=20.0) # 20s should enough for adb start
flags = subprocess.CREATE_NO_WINDOW if os.name == 'nt' else 0
subprocess.run([adb_path(), "start-server"], timeout=20.0, creationflags=flags) # 20s should enough for adb start

Check warning on line 69 in adbutils/_adb.py

View check run for this annotation

Codecov / codecov/patch

adbutils/_adb.py#L68-L69

Added lines #L68 - L69 were not covered by tests
return self._create_socket()

@property
Expand Down

0 comments on commit 6e6793f

Please sign in to comment.