Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
capmt: network mode: fix a crash when oscam is restarted
Use capmt_queue_msg() after connecting instead of direct write to socket.
Fixes a crash when the channel is played and oscam is restarted.
  • Loading branch information
manio committed Jan 22, 2015
1 parent 3077ffa commit 519ec96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descrambler/capmt.c
Expand Up @@ -797,7 +797,7 @@ capmt_send_client_info(capmt_t *capmt)
int len = snprintf(buf + 7, sizeof(buf) - 7, "Tvheadend %s", tvheadend_version);
buf[6] = len;

capmt_write_msg(capmt, 0, 0, (uint8_t *)&buf, len + 7);
capmt_queue_msg(capmt, 0, 0, (uint8_t *)&buf, len + 7, CAPMT_MSG_FAST);
}

static void
Expand Down

0 comments on commit 519ec96

Please sign in to comment.