summaryrefslogtreecommitdiffstats
path: root/ahl-policy
diff options
context:
space:
mode:
authorTai Vuong <tvuong@audiokinetic.com>2017-11-16 15:52:15 -0500
committerTai Vuong <tvuong@audiokinetic.com>2017-11-16 15:52:15 -0500
commitcfe8ef78528c34a02fa1665095697bcd9ddfb200 (patch)
treef6377a68fbf0475057fd247d85df2da356ef6ed3 /ahl-policy
parent24996e4de3c3d935876abb61d33e7d953d8d01c6 (diff)
fix Invalid streamID error when close streameel_4.99.3eel/4.99.34.99.3
Signed-off-by: Tai Vuong <tvuong@audiokinetic.com>
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;
}