Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/DicomMoveScuJob.cpp @ 3874:2effa961f67f transcoding
forcing use of DicomAssociationParameters if creating an SCU
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Apr 2020 15:00:20 +0200 |
parents | 09798f2b985f |
children | ea1d32861cfc |
comparison
equal
deleted
inserted
replaced
3873:ae5bdde751fd | 3874:2effa961f67f |
---|---|
95 | 95 |
96 void DicomMoveScuJob::Retrieve(const DicomMap& findAnswer) | 96 void DicomMoveScuJob::Retrieve(const DicomMap& findAnswer) |
97 { | 97 { |
98 if (connection_.get() == NULL) | 98 if (connection_.get() == NULL) |
99 { | 99 { |
100 connection_.reset(new DicomControlUserConnection(localAet_, remote_)); | 100 DicomAssociationParameters params(localAet_, remote_); |
101 connection_.reset(new DicomControlUserConnection(params)); | |
101 } | 102 } |
102 | 103 |
103 if (timeout_ > -1) | 104 if (timeout_ > -1) |
104 { | 105 { |
105 connection_->SetTimeout(timeout_); | 106 connection_->SetTimeout(timeout_); |