1
0
Fork 0
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:
Josh Elsasser 2006-09-23 06:29:32 +00:00
parent 40158c766f
commit 1b8280df3e

View file

@ -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;
}