Haiku:
Eric is a fool. Matt found his really dumb bug. Eric is humbled. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2830 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
d4e4120ca1
commit
c6f6948f9d
|
|
@ -291,14 +291,11 @@ public class IndelRealigner extends ReadWalker<Integer, Integer> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( writers != null ) {
|
if ( writers != null ) {
|
||||||
for ( SAMFileWriter writer : writers.values() ) {
|
HashSet<SAMFileWriter> uniqueWriters = new HashSet<SAMFileWriter>(writers.values());
|
||||||
// TODO -- figure out why we're getting an exception thrown here
|
for ( SAMFileWriter writer : uniqueWriters ) {
|
||||||
// TODO -- because we need to call close() to flush out the remaining reads from the writer
|
|
||||||
try {
|
|
||||||
writer.close();
|
writer.close();
|
||||||
if ( !SORT_ON_DISK )
|
if ( !SORT_ON_DISK )
|
||||||
((SortingSAMFileWriter)writer).getBaseWriter().close();
|
((SortingSAMFileWriter)writer).getBaseWriter().close();
|
||||||
} catch (RuntimeException e) {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue