From 08af516e12530f858ab93c0994e100b68e4b8ff5 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 1 Jan 2010 22:28:50 +0000 Subject: [PATCH] (trunk libT) unset DHT's ip4 and ip6 sockets on shutdown so that the libtransmission thread doesn't block on tr_dhtStatus() during shutdown --- libtransmission/tr-dht.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libtransmission/tr-dht.c b/libtransmission/tr-dht.c index 50074f6b5..07189c682 100644 --- a/libtransmission/tr-dht.c +++ b/libtransmission/tr-dht.c @@ -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"); -- 2.40.0