Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp: fix http api proxy (global_lock), fixes #3939
  • Loading branch information
perexg committed Aug 16, 2016
1 parent 09e982e commit 966d8cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/htsp_server.c
Expand Up @@ -1295,6 +1295,8 @@ htsp_method_api(htsp_connection_t *htsp, htsmsg_t *in)
const char *remain;
int r;

pthread_mutex_unlock(&global_lock);

args = htsmsg_get_map(in, "args");
remain = htsmsg_get_str(in, "path");

Expand Down Expand Up @@ -1325,6 +1327,8 @@ htsp_method_api(htsp_connection_t *htsp, htsmsg_t *in)
}

htsmsg_destroy(args2);

pthread_mutex_lock(&global_lock);
return ret;
}

Expand Down

0 comments on commit 966d8cc

Please sign in to comment.