Skip to content

Instantly share code, notes, and snippets.

@jketcham
Created April 10, 2013 04:36
Show Gist options
  • Save jketcham/5351818 to your computer and use it in GitHub Desktop.
Save jketcham/5351818 to your computer and use it in GitHub Desktop.
Operation 0 of the running loop, looking for cause of data being sent to server twice
if(map[pX][pY] == Constants.MAP_WIN) {
endDate = new java.util.Date();
SimpleDateFormat sdf;
sdf = new SimpleDateFormat("hh:mm:ss.SSS");
eTime = sdf.format(endDate);
SendData sender = new SendData(packUp(sTime, eTime, recActions));
sendThread = new Thread(sender);
sendThread.start();
(new Thread(sender)).start();
operation = 2;
}
@jketcham
Copy link
Author

Could the problem be in lines #8 - #11? It looks like it's creating two of the same objects and sending them both. Which would be silly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment