mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-17 01:28:41 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user