fixed gui expecting more databytes from receiver, cuz of probes changing databytes

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@359 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2012-11-23 16:15:26 +00:00
parent 5236aa7cce
commit d0d7eac553
7 changed files with 83 additions and 56 deletions

View File

@@ -106,18 +106,6 @@ bool slsReceiverFunctionList::resetTotalFramesCaught(bool i){
void slsReceiverFunctionList::closeFile(int p){
if(listening_thread_running){
cout << "Closing file and Exiting." << endl;
fclose(sfilefd);
}
//exit(0);
}
int slsReceiverFunctionList::startReceiver(){
#ifdef VERBOSE
cout << "Starting Receiver" << endl;
@@ -188,9 +176,6 @@ int slsReceiverFunctionList::startListening(){
frameIndex=0;
shortFileNameIndex=1;
//Catch signal SIGINT to close files properly
signal(SIGINT,closeFile);
//create file name
if(!frameIndexNeeded)
@@ -280,6 +265,7 @@ int slsReceiverFunctionList::startListening(){
//close file
fclose(sfilefd);
#ifdef VERBOSE
cout << "listening_thread_running:" << listening_thread_running << endl;
cout << "sfield:" << (int)sfilefd << endl;
#endif