Ignore:
Timestamp:
Jul 12, 2011, 12:26:24 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) #4351 "DHT can't be uninitialized during a session" -- don't process incoming DHT messages if DHT is disabled. Don't process incoming UTP messages if UTP is disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r12270 r12543  
    346346    tr_ndbg( "DHT", "Uninitializing DHT" );
    347347
    348     event_free( dht_timer );
    349     dht_timer = NULL;
     348    if( dht_timer != NULL ) {
     349        event_free( dht_timer );
     350        dht_timer = NULL;
     351    }
    350352
    351353    /* Since we only save known good nodes, avoid erasing older data if we
Note: See TracChangeset for help on using the changeset viewer.