Do not launch Shutdown in a new thread in case we are running the UI.
authorWladimir J. van der Laan <laanwj@gmail.com>
Sat, 12 Nov 2011 12:50:25 +0000 (13:50 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Sat, 12 Nov 2011 13:14:27 +0000 (14:14 +0100)
commit19197d5e2973785e37b8b0eeefc3d6af0b2bb1fc
tree44f74a22a5b460d923516354cbabf7581ccd2cdd
parent6be6be2ed9d5d4b9dc1657d434a7fed3b3935f6f
Do not launch Shutdown in a new thread in case we are running the UI.

This leads to the bitcoin core being shut down while the UI is accessing it, and generally results in a segmentation fault or crash. In case it is desirable to make it possible to shutdown the GUI from its RPC server, we'll need to implement a signal for it. For the mean time, this is a safe stopgap.
src/bitcoinrpc.cpp