On master (35eda631ed3bd23d4a41761a85a96f925d4a6337) the GUI thread is blocked with QThread::wait()
during bitcoin-qt
shutdown routine. This causes unresponsive GUI if some commands are passed to the RPC console (#13217) before shutdown initiating.
This PR:
- removes blocking call and uses additional signal-to-slot connections.
- makes
bitcoin-qt
shutdown routine more streamlined: the onlyQApplication::exec()
is used inbitcoin-qt
. Therefore, the main event loop never interrupts until shutdown, unlike master and alternative #13674.
Refs:
This PR is an alternative to #13674.
Fix #13217