catch errors earlier

This commit is contained in:
jrandom
2004-07-28 23:29:21 +00:00
committed by zzz
parent 5af96f5ccb
commit b2fda0c79d

View File

@ -155,7 +155,11 @@ public class HandleTunnelCreateMessageJob extends JobImpl {
GarlicMessage reply = createReply(msg);
TunnelId outTunnelId = selectReplyTunnel();
if (outTunnelId == null) {
if (_log.shouldLog(Log.ERROR))
_log.error("No tunnel to send reply through");
return;
}
SendTunnelMessageJob job = new SendTunnelMessageJob(getContext(), reply, outTunnelId,
_message.getReplyPeer(),
_message.getReplyTunnel(),