[freenet-dev] [freenet-cvs] r16733 - trunk/freenet/src/freenet/node
Robert Hailey
robert at emu.freenetproject.org
Thu Dec 20 17:49:52 UTC 2007
On Dec 19, 2007, at 1:31 PM, robert at freenetproject.org wrote:
> this.pn = pn;
> bt = new BlockTransmitter(node.usm, pn, uid, prb,
> node.outputThrottle, CHKInsertSender.this);
> @@ -56,7 +59,13 @@
> try {
> bt.send(node.executor);
> this.completedTransfer(bt.failedDueToOverload());
> - this.receivedNotice(waitForReceivedNotification(this));
> + if (pn.isRoutable() && transferSucceeded) {
> [...]
> + node.usm.addAsyncFilter(getNotificationMessageFilter(), this);
> + } else {
> + this.receivedNotice(false);
> + }
> } catch (Throwable t) {
> this.completedTransfer(false);
> this.receivedNotice(false);
> @@ -64,10 +73,11 @@
> }
Should this really be isRoutable() (as originally), or isConnected()?
--
Robert Hailey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://emu.freenetproject.org/pipermail/devl/attachments/20071220/6d3b6273/attachment.htm
More information about the Devl
mailing list