(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
+4 -1
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");