Changeset 47a0df76


Ignore:
Timestamp:
Aug 19, 2016 4:02:17 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8cc03c2
Parents:
ff2d5ba
Message:

Router: Fix return code in getShutdownTimeRemaining()
when no participating tunnels remain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Router.java

    rff2d5ba r47a0df76  
    14071407        long exp = _context.tunnelManager().getLastParticipatingExpiration();
    14081408        if (exp < 0)
    1409             return -1;
     1409            return 0;
    14101410        else
    1411             return exp + 2*CLOCK_FUDGE_FACTOR - _context.clock().now();
     1411            return Math.max(0, exp + 2*CLOCK_FUDGE_FACTOR - _context.clock().now());
    14121412    }
    14131413   
Note: See TracChangeset for help on using the changeset viewer.