mirror of
https://github.com/transmission/transmission
synced 2025-02-04 21:43:03 +00:00
Fix logic error in exit check.
This commit is contained in:
parent
40158c766f
commit
1b8280df3e
1 changed files with 4 additions and 3 deletions
|
@ -546,9 +546,10 @@ exitcheck(gpointer gdata) {
|
|||
struct exitdata *data = gdata;
|
||||
|
||||
/* keep going if we still have torrents and haven't hit the exit timeout */
|
||||
if(time(NULL) - data->started < TRACKER_EXIT_TIMEOUT &&
|
||||
!tr_backend_torrents_stopped(data->cbdata->back)) {
|
||||
updatemodel(data->cbdata);
|
||||
if( time( NULL ) - data->started < TRACKER_EXIT_TIMEOUT &&
|
||||
( !tr_backend_torrents_stopped( data->cbdata->back ) ||
|
||||
TR_NAT_TRAVERSAL_DISABLED != natstat ) ) {
|
||||
updatemodel( data->cbdata );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue