diff OrthancServer/Internals/CommandDispatcher.h @ 2134:ddc75c6c712d

Avoid hard crash if not enough memory
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 12:04:09 +0100
parents 879f3be759ef
children a3a65de1840f
line wrap: on
line diff
--- a/OrthancServer/Internals/CommandDispatcher.h	Wed Nov 09 10:21:37 2016 +0100
+++ b/OrthancServer/Internals/CommandDispatcher.h	Wed Nov 09 12:04:09 2016 +0100
@@ -61,22 +61,9 @@
                         const std::string& remoteIp,
                         const std::string& remoteAet,
                         const std::string& calledAet,
-                        IApplicationEntityFilter* filter) :
-        server_(server),
-        assoc_(assoc),
-        remoteIp_(remoteIp),
-        remoteAet_(remoteAet),
-        calledAet_(calledAet),
-        filter_(filter)
-      {
-        associationTimeout_ = server.GetAssociationTimeout();
-        elapsedTimeSinceLastCommand_ = 0;
-      }
+                        IApplicationEntityFilter* filter);
 
-      virtual ~CommandDispatcher()
-      {
-        AssociationCleanup(assoc_);
-      }
+      virtual ~CommandDispatcher();
 
       virtual bool Step();
     };