From f1b0ab64694813da97f49dccb5548cddbc4729d2 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sun, 11 Mar 2012 16:05:27 +0400 Subject: [PATCH] zapit/src/frontend.cpp: close fd in standby --- src/zapit/src/frontend.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index c5dcba0d2..8b8425209 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -222,7 +222,11 @@ bool CFrontend::Open(void) //secSetVoltage(SEC_VOLTAGE_OFF, 15); secSetVoltage(SEC_VOLTAGE_13, 15); secSetTone(SEC_TONE_OFF, 15); - sendDiseqcPowerOn(); + + diseqc_t diseqcType = (diseqc_t) config.diseqcType; + config.diseqcType = NO_DISEQC; + setDiseqcType(diseqcType); + currentTransponder.TP_id = 0; standby = false; @@ -242,6 +246,8 @@ void CFrontend::Close(void) secSetTone(SEC_TONE_OFF, 15); tuned = false; standby = true;; + close(fd); + fd = -1; } void CFrontend::setMasterSlave(bool _slave)