mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 19:23:26 -03:00
Avoid core dump if rpc port is in use.
The cleanup code needs to check for NULL rpcworkers thread group.
This commit is contained in:
parent
b9beea6e9d
commit
b2ba55c42b
1 changed files with 2 additions and 1 deletions
|
@ -881,6 +881,7 @@ void StopRPCThreads()
|
|||
|
||||
deadlineTimers.clear();
|
||||
rpc_io_service->stop();
|
||||
if (rpc_worker_group != NULL)
|
||||
rpc_worker_group->join_all();
|
||||
delete rpc_worker_group; rpc_worker_group = NULL;
|
||||
delete rpc_ssl_context; rpc_ssl_context = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue