Changeset aa98e54 for router


Ignore:
Timestamp:
Jun 11, 2018 12:11:03 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
da5de2f
Parents:
253c157
Message:

Catch RuntimeException? in BuildRequestor?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/tunnel/pool/BuildRequestor.java

    r253c157 raa98e54  
    231231            OutNetMessage outMsg = new OutNetMessage(ctx, msg, ctx.clock().now() + FIRST_HOP_TIMEOUT, PRIORITY, peer);
    232232            outMsg.setOnFailedSendJob(new TunnelBuildFirstHopFailJob(ctx, pool, cfg, exec));
    233             ctx.outNetMessagePool().add(outMsg);
     233            try {
     234                ctx.outNetMessagePool().add(outMsg);
     235            } catch (RuntimeException re) {
     236                log.error("failed sending build message", re);
     237                return false;
     238            }
    234239        }
    235240        //if (log.shouldLog(Log.DEBUG))
Note: See TracChangeset for help on using the changeset viewer.