Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
capmt: move close trace bellow -1 check
  • Loading branch information
perexg committed Jun 21, 2016
1 parent 3e3cad1 commit 80c0c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descrambler/capmt.c
Expand Up @@ -556,9 +556,9 @@ capmt_socket_close(capmt_t *capmt, int sock_idx)
{
int fd = capmt->capmt_sock[sock_idx];
lock_assert(&capmt->capmt_mutex);
tvhtrace("capmt", "%s: socket close %d", capmt_name(capmt), fd);
if (fd < 0)
return;
tvhtrace("capmt", "%s: socket close %d", capmt_name(capmt), fd);
capmt_poll_rem(capmt, fd);
close(fd);
capmt->capmt_sock[sock_idx] = -1;
Expand Down

0 comments on commit 80c0c7c

Please sign in to comment.