* bombe at freenetproject.org <bombe at freenetproject.org> [2008-06-15
19:53:33]:
> Author: bombe
> Date: 2008-06-15 19:53:33 +0000 (Sun, 15 Jun 2008)
> New Revision: 20359
>
> Modified:
> trunk/apps/jFCPlib/src/net/pterodactylus/fcp/FcpConnectionHandler.java
> Log:
> correctly terminate AllData message
>
> Modified:
> trunk/apps/jFCPlib/src/net/pterodactylus/fcp/FcpConnectionHandler.java
> ===================================================================
> --- trunk/apps/jFCPlib/src/net/pterodactylus/fcp/FcpConnectionHandler.java
> 2008-06-15 18:45:08 UTC (rev 20358)
> +++ trunk/apps/jFCPlib/src/net/pterodactylus/fcp/FcpConnectionHandler.java
> 2008-06-15 19:53:33 UTC (rev 20359)
> @@ -84,7 +84,7 @@
> fcpMessage = new FcpMessage(line);
> continue;
> }
> - if ("EndMessage".equals(line)) {
> + if ("EndMessage".equalsIgnoreCase(line) ||
> "Data".equalsIgnoreCase(line)) {
> fcpConnection.handleMessage(fcpMessage);
> fcpMessage = null;
> }
The case-sensitive test looked okay to me; when does the node send a
"EndMessage" with a different case ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080616/c2356672/attachment.pgp>