Mercurial > hg > orthanc
diff OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp @ 1017:9d0c7301596e lua-scripting
storescp modality
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jul 2014 10:43:47 +0200 |
parents | 84513f2ee1f3 |
children | 21ea32170764 |
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Thu Jul 10 09:48:38 2014 +0200 +++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Thu Jul 10 10:43:47 2014 +0200 @@ -172,6 +172,14 @@ void ReusableDicomUserConnection::Unlock() { + if (connection_ != NULL && + connection_->GetDistantManufacturer() == ModalityManufacturer_StoreScp) + { + // "storescp" from DCMTK has problems when reusing a + // connection. Always close. + Close(); + } + lastUse_ = Now(); mutex_.unlock(); }