Skip to content

Commit

Permalink
add missing conn.Close for imagemounter #483
Browse files Browse the repository at this point in the history
Co-authored-by: 孙圣翔²⁰₂₁ <[email protected]>
  • Loading branch information
codeskyblue and 孙圣翔²⁰₂₁ authored Oct 7, 2024
1 parent 4120842 commit 0ef1b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/imagemounter/imagemounter.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ func IsDevModeEnabled(device ios.DeviceEntry) (bool, error) {
if err != nil {
return false, fmt.Errorf("IsDevModeEnabled: failed connecting to image mounter service with err: %w", err)
}
defer conn.Close()

reader := conn.Reader()
request := map[string]interface{}{"Command": "QueryDeveloperModeStatus"}
Expand Down

0 comments on commit 0ef1b00

Please sign in to comment.