mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01: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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user