Issue #2758 Fix MHSEmulator to pass small files

Change-Id: I760be79c1119708bdcc0ed472b575d9f88fd5707

Former-commit-id: acf250cf4d [formerly 82cf8e81625ebf809ce62b1e21b4db8d5ef0a098]
Former-commit-id: 4309016948
This commit is contained in:
Ron Anderson 2014-02-13 15:53:15 -06:00
parent f2b32fa1ae
commit 027cb2ef91

View file

@ -207,7 +207,7 @@ public class SocketSrv {
message = getMessage(in);
if (message.length < 50) {
if (!flag.equals("-file")) {
String strMessage = new String(message);
if (strMessage.equals(MhsUtil.END_TOKEN)) {
log("Disconnected from client: " + client);
@ -228,6 +228,7 @@ public class SocketSrv {
log("File Received of size: " + message.length);
files.add(writeToFile(myMHS + "-" + params.get("-MSGID"),
message));
flag = "";
}
}
}
@ -271,7 +272,7 @@ public class SocketSrv {
String fileList = "";
for (int i = 0; i < files.size(); i++) {
fileList += files.get(i);
if (i != files.size() - 1) {
if (i != (files.size() - 1)) {
fileList += ",";
}
}