diff OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp @ 773:3bd0589af992

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Apr 2014 15:08:51 +0200
parents 31cc399c7762
children 4e3593c3511d
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp	Wed Apr 30 14:51:43 2014 +0200
+++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp	Wed Apr 30 15:08:51 2014 +0200
@@ -55,6 +55,7 @@
         connection_->GetDistantManufacturer() == manufacturer)
     {
       // The current connection can be reused
+      LOG(INFO) << "Reusing the previous SCU connection";
       return;
     }
 
@@ -92,7 +93,7 @@
       {
         boost::mutex::scoped_lock lock(that->mutex_);
         if (that->connection_ != NULL &&
-            Now() > that->lastUse_ + that->timeBeforeClose_)
+            Now() >= that->lastUse_ + that->timeBeforeClose_)
         {
           LOG(INFO) << "Closing the global SCU connection after timeout";
           that->Close();