mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
parent
143c5f5381
commit
7a227917ff
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue