From: leslie <unknown>
Date: Sun, 10 Jun 2012 10:21:03 +0000 (+0200)
Subject: cardclient: add logmsg for failed, cached ECM
X-Git-Tag: upstream/620~5
X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=77f31e5389a7b0deee8b8a547e05a0d52c3fc371;p=sasc-ng.git

cardclient: add logmsg for failed, cached ECM
---

diff --git a/systems/cardclient/cc.c b/systems/cardclient/cc.c
index 557737b..0b1da8a 100644
--- a/systems/cardclient/cc.c
+++ b/systems/cardclient/cc.c
@@ -230,6 +230,9 @@ bool cSystemCardClient::ProcessECM(const cEcmInfo *ecm, unsigned char *data)
         PRINTF(L_CC_CORE,"client %s (%s:%d) ECM failed (%d ms)",cc->Name(),cc->hostname,cc->port,(int)start.Elapsed());
         cc->msECM.Cache(id,false,cw);
         }
+      if(id<0) {
+        PRINTF(L_CC_CORE,"client %s (%s:%d) ECM already cached as failed",cc->Name(),cc->hostname,cc->port);
+        }
       }
     if(!cc) PRINTF(L_CC_CORE,"cc-loop");
     oldcc=cc;