diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-02-15 14:25:30 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-02-15 14:25:30 +0100 |
commit | 69e9a07f8b5808d04207256fd4413c4eece93966 (patch) | |
tree | 7b13c37eeaa74d96c63fefc66d453bd24d6f3049 /ci.c | |
parent | f721c85b46dcf641b4e9e4ba9382c8321160b805 (diff) | |
download | vdr-69e9a07f8b5808d04207256fd4413c4eece93966.tar.gz vdr-69e9a07f8b5808d04207256fd4413c4eece93966.tar.bz2 |
Resetting the CAM slot in case communication breaks down
Diffstat (limited to 'ci.c')
-rw-r--r-- | ci.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: ci.c 1.5 2003/02/09 12:45:00 kls Exp $ + * $Id: ci.c 1.6 2003/02/15 14:14:57 kls Exp $ */ /* XXX TODO @@ -1453,13 +1453,11 @@ void cCiHandler::Process(void) } } } - else { - if (!CloseAllSessions(Slot)) { - if (tpl->ModuleReady(Slot)) { - dbgprotocol("Module ready in slot %d\n", Slot); - tpl->NewConnection(Slot); - } - } + else if (CloseAllSessions(Slot)) + tpl->ResetSlot(Slot); + else if (tpl->ModuleReady(Slot)) { + dbgprotocol("Module ready in slot %d\n", Slot); + tpl->NewConnection(Slot); } } for (int i = 0; i < MAX_CI_SESSION; i++) { |