Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix 519ec96 (capmt: network mode: fix a crash when oscam is restarted)
When there was a further subscribing requests, the queued greeting could
be queued not as the first position in the queue, leading to problems
when subscribing the channel.
Now requesting to flush the queue in capmt_notify_server() to be sure
that the greeting go out to OSCam as a first command.
  • Loading branch information
manio authored and perexg committed Jan 24, 2015
1 parent 3feccf3 commit 6a27c4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/descrambler/capmt.c
Expand Up @@ -916,6 +916,10 @@ capmt_stop_filter(capmt_t *capmt, int adapter, sbuf_t *sb, int offset)
static void
capmt_notify_server(capmt_t *capmt, capmt_service_t *ct, int force)
{
/* flush out the greeting */
if (capmt->capmt_oscam == CAPMT_OSCAM_NET_PROTO)
capmt_flush_queue(capmt, 0);

pthread_mutex_lock(&capmt->capmt_mutex);
if (capmt_oscam_new(capmt)) {
if (!LIST_EMPTY(&capmt->capmt_services))
Expand Down

0 comments on commit 6a27c4c

Please sign in to comment.