Skip to content

Commit

Permalink
fix: check afc api
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jun 24, 2024
1 parent 4d0e4ef commit f7af517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ func CheckAfcService(ctx context.Context, id string) error {
}

var err error
if err = manager.CheckAfcServiceStatus(device.ID); err != nil {
if err = manager.CheckAfcServiceStatus(device.UDID); err != nil {
// try restart usbmuxd to fix afc connect issue
if err = manager.RestartUsbmuxd(); err == nil {
time.Sleep(5 * time.Second)
err = manager.CheckAfcServiceStatus(device.ID)
err = manager.CheckAfcServiceStatus(device.UDID)
}
}

Expand Down

0 comments on commit f7af517

Please sign in to comment.