samtools/htsjdk — pull request #144 by nh13 (2014-12-18 18:39:04+00:00)
Title: Fixed race condition where synchronouslyClose() would be called multiple...

... times if AbstractAsyncWriter.close() called twice simultaneously

Closeable requires idempotentency: now only writing BAM index once when closing