Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: 9c0db2f7fde54ac535a2e9797b8c0131550809af
      
https://github.com/conformal/btcd/commit/9c0db2f7fde54ac535a2e9797b8c0131550809af
  Author: Dave Collins <[email protected]>
  Date:   2014-12-03 (Wed, 03 Dec 2014)

  Changed paths:
    M addrmgr/addrmanager.go
    M cpuminer.go
    M peer.go

  Log Message:
  -----------
  Ensure all tickers are explicitly stopped.

As pointed out in #189, according to the Go documentation, a ticker must
be stopped to release associated resources.  This commit adds a defer call
to stop two tickers there were previously not being stopped as well as
changes two others that were being stopped over to use defer so it's more
consistent.

The other ticker in ScheduleShutdown is replaced and already calls Stop
before replacing it, so it has not been modified.

Closes #189.

ok @jrick


Reply via email to