only parse message if channel is connected
This commit is contained in:
parent
b020e674e2
commit
736a7b043a
1 changed files with 11 additions and 7 deletions
|
@ -349,6 +349,9 @@ for (int i = 0; i < BLOCK_SIZE_SAMPLES; i++)
|
||||||
iConTimeOut = CON_TIME_OUT_CNT_MAX;
|
iConTimeOut = CON_TIME_OUT_CNT_MAX;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
// only use protocol data if channel is connected
|
||||||
|
if ( IsConnected() )
|
||||||
{
|
{
|
||||||
// this seems not to be an audio block, parse the message
|
// this seems not to be an audio block, parse the message
|
||||||
if ( Protocol.ParseMessage ( vecbyData, iNumBytes ) )
|
if ( Protocol.ParseMessage ( vecbyData, iNumBytes ) )
|
||||||
|
@ -360,6 +363,7 @@ for (int i = 0; i < BLOCK_SIZE_SAMPLES; i++)
|
||||||
eRet = PS_PROT_ERR;
|
eRet = PS_PROT_ERR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return eRet;
|
return eRet;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue