summaryrefslogtreecommitdiffstats
path: root/ahl-policy
diff options
context:
space:
mode:
Diffstat (limited to 'ahl-policy')
-rw-r--r--ahl-policy/ahl-policy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ahl-policy/ahl-policy.c b/ahl-policy/ahl-policy.c
index 21ec669..62e1e3c 100644
--- a/ahl-policy/ahl-policy.c
+++ b/ahl-policy/ahl-policy.c
@@ -815,7 +815,11 @@ int Policy_CloseStream(json_object *pStreamJ)
if(pCurrEndPointPolicy)
{
//close the stream and handle unduck if need be
- PolicyRunningIdleTransition(pCurrEndPointPolicy, &Stream);
+ if((pCurrEndPointPolicy->streamInfo != NULL) && (pCurrEndPointPolicy->streamInfo->len > 0))
+ {
+ PolicyRunningIdleTransition(pCurrEndPointPolicy, &Stream);
+ }
+
}
return AHL_POLICY_ACCEPT;
}