1
0
Fork 0
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:
Charles Kerr 2010-01-01 22:28:50 +00:00
parent 6b8fb48d64
commit 08af516e12

View file

@ -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");