From d4da240011f979e6f4dc82c1ccc42aab2f437f2d Mon Sep 17 00:00:00 2001 From: Ivan Kluchnikov Date: Tue, 10 Aug 2010 17:25:37 +0400 Subject: [PATCH] This shoud not be committed. When this code is enabled transaction will be closed after about 15 seconds of inactivity. It is too short for USSD and should be fixed later. --- public-trunk/GSM/GSML2LAPDm.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public-trunk/GSM/GSML2LAPDm.cpp b/public-trunk/GSM/GSML2LAPDm.cpp index df08d47..e367c6f 100644 --- a/public-trunk/GSM/GSML2LAPDm.cpp +++ b/public-trunk/GSM/GSML2LAPDm.cpp @@ -980,10 +980,9 @@ void L2LAPDm::sendIFrame(const BitVector& payload, bool MBit) bool L2LAPDm::stuckChannel(const L2Frame& frame) { // Check for excessive idling. - //if (frame.DCCHIdle()) mIdleCount++; - //else mIdleCount=0; - //return mIdleCount > maxIdle(); - return false; + if (frame.DCCHIdle()) mIdleCount++; + else mIdleCount=0; + return mIdleCount > maxIdle(); }