mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
(trunk libT) unset DHT's ip4 and ip6 sockets on shutdown so that the libtransmission thread doesn't block on tr_dhtStatus() during shutdown
This commit is contained in:
parent
6b8fb48d64
commit
08af516e12
1 changed files with 4 additions and 1 deletions
|
@ -470,8 +470,11 @@ tr_dhtUninit(tr_session *ss)
|
|||
|
||||
dht_uninit( 1 );
|
||||
tr_netCloseSocket( dht_socket );
|
||||
if(dht6_socket > 0)
|
||||
dht_socket = -1;
|
||||
if(dht6_socket > 0) {
|
||||
tr_netCloseSocket( dht6_socket );
|
||||
dht6_socket = -1;
|
||||
}
|
||||
|
||||
tr_ndbg("DHT", "Done uninitializing DHT");
|
||||
|
||||
|
|
Loading…
Reference in a new issue