got rid of eth taking weird values error and also checks for fifo empty before you stop writing data

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@477 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-02-27 10:13:22 +00:00
parent bb07b6db7d
commit 9d8b621adf
2 changed files with 13 additions and 6 deletions

View File

@ -287,7 +287,7 @@ int slsReceiverFunctionList::startListening(){
// very end of the program.
do {
if (strchr(eth,'.')!=NULL) strcpy(eth,"");
if(!strlen(eth)){
cout<<"warning:eth is empty.listening to all"<<endl;
@ -420,7 +420,7 @@ int slsReceiverFunctionList::startWriting(){
while(listening_thread_running){
while(listening_thread_running || (!fifo->isEmpty())){
//when it reaches maxFramesPerFile,start writing new file
if (framesInFile == maxFramesPerFile) {