Fix shutdown hang with >= 8 -addnodes set
commite007b243c4840e44857b5ccf686ed35899e44af0
authorMatt Corallo <git@bluematt.me>
Wed, 8 Mar 2017 19:41:57 +0000 (8 14:41 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 8 Mar 2017 19:41:57 +0000 (8 14:41 -0500)
tree5b24688f7f4bf20b86887e59d223b323a87338fe
parent6996e066b538f03b8aa1f617dbb959b57ff6e727
Fix shutdown hang with >= 8 -addnodes set

We previously would block waiting for a CSemaphoreGrant in
ThreadOpenAddedConnections, when we did not need to. This would
block as the posts in CConnman shutdown were both to the wrong
semaphore and in the wrong location.
src/net.cpp