Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Sep 15, 2024
1 parent 7c18175 commit 035c95b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ int ptp_get_object_handles(struct PtpRuntime *r, int id, int format, int in, str
cmd.params[1] = format;
cmd.params[2] = in;

ptp_mutex_keep_locked(r);
ptp_mutex_lock(r);

int rc = ptp_send(r, &cmd);
if (rc) goto end;
Expand Down Expand Up @@ -259,7 +259,7 @@ int ptp_get_prop_desc(struct PtpRuntime *r, int code, struct PtpPropDesc *pd) {
cmd.param_length = 1;
cmd.params[0] = code;

ptp_mutex_keep_locked(r);
ptp_mutex_lock(r);
int rc = ptp_send(r, &cmd);
if (rc) goto end;

Expand Down Expand Up @@ -335,7 +335,7 @@ int ptp_get_object(struct PtpRuntime *r, int handle) {
int ptp_download_object(struct PtpRuntime *r, int handle, FILE *f, size_t max) {
int read = 0;
while (1) {
ptp_mutex_keep_locked(r);
ptp_mutex_lock(r);
int x = ptp_get_partial_object(r, handle, read, max);
if (x) {
ptp_mutex_unlock(r);
Expand Down

0 comments on commit 035c95b

Please sign in to comment.