correctly terminate AllData message
authorDavid Roden <bombe@pterodactylus.net>
Sun, 15 Jun 2008 19:53:33 +0000 (19:53 +0000)
committerDavid Roden <bombe@pterodactylus.net>
Sun, 15 Jun 2008 19:53:33 +0000 (19:53 +0000)
git-svn-id: file:///home/toad/git-migration/temprepository/trunk/apps/jFCPlib@20359 67a373e5-eb02-0410-a15c-ee090a768436

src/net/pterodactylus/fcp/FcpConnectionHandler.java

index ba6b86b..d5784bb 100644 (file)
@@ -84,7 +84,7 @@ class FcpConnectionHandler implements Runnable {
                                        fcpMessage = new FcpMessage(line);
                                        continue;
                                }
-                               if ("EndMessage".equals(line)) {
+                               if ("EndMessage".equalsIgnoreCase(line) || "Data".equalsIgnoreCase(line)) {
                                        fcpConnection.handleMessage(fcpMessage);
                                        fcpMessage = null;
                                }