Browse Source

Check for dropped network; log and return false

Add check to error condition when doing the retrieve.
Steve Pieper 14 years ago
parent
commit
3c6995398a
1 changed files with 5 additions and 0 deletions
  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;
   delete responses;
+  if ( !scu.dropNetwork().good() ) 
+    {
+    logger.error ( "Error dropping the network" );
+    return false;
+    }
   return true;
   return true;
 }
 }