[charles@localhost daemon]$ svn diff torrents.c Index: torrents.c =================================================================== --- torrents.c (revision 4304) +++ torrents.c (working copy) @@ -378,22 +378,12 @@ assert( NULL != gl_handle ); assert( !gl_exiting ); - if( pex == gl_pex ) + if( pex != gl_pex ) { - return; - } - gl_pex = pex; + tr_setPexEnabled( gl_pex ); - for( tor = iterate( NULL ); NULL != tor; tor = iterate( tor ) ) - { - if( tor->pexset ) - { - continue; - } - tr_torrentDisablePex( tor->tor, !gl_pex ); + savestate( ); } - - savestate(); } int