mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
Don't call tr_utpClose in toggle_utp.
The uTP timer needs to run even when uTP has been disabled, or else the uTP sockets will never time out.
This commit is contained in:
parent
2729d3c291
commit
a348c5d421
1 changed files with 2 additions and 2 deletions
|
@ -1990,8 +1990,8 @@ toggle_utp( void * data )
|
|||
|
||||
session->isUTPEnabled = !session->isUTPEnabled;
|
||||
|
||||
if( !session->isUTPEnabled )
|
||||
tr_utpClose( session );
|
||||
/* But don't call tr_utpClose -- see reset_timer in tr-utp.c for an
|
||||
explanation. */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue