Explorar o código

Check for dropped network; log and return false

Add check to error condition when doing the retrieve.
Steve Pieper %!s(int64=14) %!d(string=hai) anos
pai
achega
3c6995398a
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Libs/DICOM/Core/ctkDICOMRetrieve.cpp

+ 5 - 0
Libs/DICOM/Core/ctkDICOMRetrieve.cpp

@@ -237,6 +237,11 @@ bool ctkDICOMRetrievePrivate::retrieve ( QString UID, RetrieveType retriveType )
 
 
   delete responses;
+  if ( !scu.dropNetwork().good() ) 
+    {
+    logger.error ( "Error dropping the network" );
+    return false;
+    }
   return true;
 }