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:
Mariusz Bialonczyk 2015-01-22 11:13:20 +01:00
parent 3077ffa4d3
commit 519ec9677e

View file

@ -797,7 +797,7 @@ capmt_send_client_info(capmt_t *capmt)
int len = snprintf(buf + 7, sizeof(buf) - 7, "Tvheadend %s", tvheadend_version); int len = snprintf(buf + 7, sizeof(buf) - 7, "Tvheadend %s", tvheadend_version);
buf[6] = len; 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 static void