We've seen an issue a few times where the timer for the AutomaticLeaseRenewer was throwing because the timer had already been Dispose()ed when attempting to clear the timer (as part of Dispose()). For safety set the timer to NULL in Dispose().
Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.
We've seen an issue a few times where the timer for the
AutomaticLeaseRenewer
was throwing because the timer had already beenDispose()
ed when attempting to clear the timer (as part ofDispose()
). For safety set the timer toNULL
inDispose()
.Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.