done for eiger, some checks for frameindex=-1,socket closing earlier than last socket etc

This commit is contained in:
Dhanya Maliakal
2016-09-20 15:12:26 +02:00
parent bdcbdba2ab
commit d6ca7ecbc4
3 changed files with 60 additions and 39 deletions

View File

@ -2163,7 +2163,7 @@ int slsReceiverTCPIPInterface::set_data_stream_enable(){
strcpy(mess,SET_RECEIVER_ERR_MESSAGE);
ret=FAIL;
}
else if(receiverBase->getStatus()==RUNNING || receiverBase->getStatus()==TRANSMITTING){
else if((index >= 0) && (receiverBase->getStatus()==RUNNING || receiverBase->getStatus()==TRANSMITTING)){
strcpy(mess,"Can not set data stream enable while receiver not idle\n");
cprintf(RED,"%s\n",mess);
ret = FAIL;