1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

fix: rpc-server shutdown assertion failure (#2747)

Fixes #2742.
This commit is contained in:
Charles Kerr 2022-03-09 11:13:51 -06:00 committed by GitHub
parent 143c5f5381
commit 7a227917ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -790,7 +790,7 @@ static void startServer(tr_rpc_server* server)
static void stopServer(tr_rpc_server* server)
{
TR_ASSERT(tr_amInEventThread(server->session));
auto const lock = server->session->unique_lock();
rpc_server_start_retry_cancel(server);
@ -1234,7 +1234,5 @@ tr_rpc_server::tr_rpc_server(tr_session* session_in, tr_variant* settings)
tr_rpc_server::~tr_rpc_server()
{
TR_ASSERT(tr_amInEventThread(this->session));
stopServer(this);
}