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
|
@ -350,14 +350,18 @@ for (int i = 0; i < BLOCK_SIZE_SAMPLES; i++)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// this seems not to be an audio block, parse the message
|
// only use protocol data if channel is connected
|
||||||
if ( Protocol.ParseMessage ( vecbyData, iNumBytes ) )
|
if ( IsConnected() )
|
||||||
{
|
{
|
||||||
eRet = PS_PROT_OK;
|
// this seems not to be an audio block, parse the message
|
||||||
}
|
if ( Protocol.ParseMessage ( vecbyData, iNumBytes ) )
|
||||||
else
|
{
|
||||||
{
|
eRet = PS_PROT_OK;
|
||||||
eRet = PS_PROT_ERR;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eRet = PS_PROT_ERR;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue