Branch: refs/heads/master
  Home:   https://github.com/conformal/btcwallet
  Commit: dd3d7467c3db1a618ab38ccf1fb2450b4a1723de
      
https://github.com/conformal/btcwallet/commit/dd3d7467c3db1a618ab38ccf1fb2450b4a1723de
  Author: Josh Rickmar <[email protected]>
  Date:   2014-01-28 (Tue, 28 Jan 2014)

  Changed paths:
    M disksync.go

  Log Message:
  -----------
  Fixes for writeDirtyToDisk.

This commit fixes two issues in the writeDirtyToDisk function:

First, closing the temporary files is now done using a defer, so they
are always closed.

Second, the various account mutexs are no longer unlocked using a
defer, preventing more than one from being held at once and causing a
deadlock caused by incorrect locking order.


Reply via email to