Matt Corallo 09fc859ef0
Fix fast-shutdown hang on ThreadImport+GenesisWait
If the user somehow manages to get into ShutdownRequested before
ThreadImport gets to ActivateBestChain() we may hang waiting on
condvar_GenesisWait forever. A simple wait_for and
ShutdownRequested resolves this case.

Github-Pull: #12367
Rebased-From: 1c9394ad477d0c1ca0ab1caa6024a7e70c125d15
Tree-SHA512: fb0751ef32d2005520738bf3b0a0f41ae3f9314d700d2a85eb50f023e87e109ce806cdcdf4a08f49a4d9c1001e27df7f461d3fd52b1f5a57885260ce9375260f
2018-02-08 10:07:24 +01:00
..
2018-02-02 10:03:10 +01:00
2017-09-29 16:02:39 +02:00
2017-12-19 16:44:57 -05:00
2018-01-25 19:17:53 +01:00
2018-01-24 17:35:43 +01:00
2018-01-23 13:16:56 -05:00
2018-01-23 13:16:56 -05:00
2018-01-10 20:55:41 -10:00
2017-10-29 21:12:12 +08:00
2018-01-09 08:59:21 -05:00