Explorar el Código

Check for dropped network; log and return false

Add check to error condition when doing the retrieve.
Steve Pieper hace 14 años
padre
commit
3c6995398a
Se han modificado 1 ficheros con 5 adiciones y 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;
 }