Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/DicomStructureSet.cpp @ 959:13e078adfb94 toa2019082301
Better error log in fetch failure callback +
timeout 600sec in OrthancRestApiCommand +
guard against dead controller access in PanSceneTracker +
relaxed DicomStructureSet AddReferenceSlice method to accept extraneous adds
of the same slice (while trying to understand how it happens in the first place)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 23 Aug 2019 14:16:45 +0200 |
parents | a7351ad54960 |
children | c20dbaab360c |
comparison
equal
deleted
inserted
replaced
958:769249e1f3b4 | 959:13e078adfb94 |
---|---|
579 { | 579 { |
580 if (referencedSlices_.find(sopInstanceUid) != referencedSlices_.end()) | 580 if (referencedSlices_.find(sopInstanceUid) != referencedSlices_.end()) |
581 { | 581 { |
582 // This geometry is already known | 582 // This geometry is already known |
583 LOG(ERROR) << "DicomStructureSet::AddReferencedSlice(): (referencedSlices_.find(sopInstanceUid) != referencedSlices_.end()). sopInstanceUid = " << sopInstanceUid; | 583 LOG(ERROR) << "DicomStructureSet::AddReferencedSlice(): (referencedSlices_.find(sopInstanceUid) != referencedSlices_.end()). sopInstanceUid = " << sopInstanceUid; |
584 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 584 |
585 // TODO: the following assertion has been disabled on 20190822 by BGO | |
586 // because it occurred from time to time. Since it wrecked havoc on the | |
587 | |
588 //throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | |
585 } | 589 } |
586 else | 590 else |
587 { | 591 { |
588 if (thickness < 0) | 592 if (thickness < 0) |
589 { | 593 { |