Skip to content

Commit

Permalink
catch brokePipeError
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 25, 2022
1 parent 2ba2220 commit 868b0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tidevice/_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,8 @@ def _connect_testmanagerd_lockdown(self) -> DTXService:
return DTXService(conn)

# 2022-08-24 add retry delay, looks like sometime can recover
@retry((ssl.SSLError, socket.timeout), delay=10, jitter=1, tries=3, logger=logging)
# BrokenPipeError(ConnectionError)
@retry((ssl.SSLError, socket.timeout, BrokenPipeError), delay=10, jitter=1, tries=3, logger=logging)
def connect_instruments(self) -> ServiceInstruments:
""" start service for instruments """
if self.major_version() >= 14:
Expand Down

0 comments on commit 868b0f9

Please sign in to comment.