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.
This commit is contained in:
parent
3077ffa4d3
commit
519ec9677e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue