Prechádzať zdrojové kódy

Check for dropped network; log and return false

Add check to error condition when doing the retrieve.
Steve Pieper 14 rokov pred
rodič
commit
3c6995398a
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  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;
 }