Created
April 10, 2013 04:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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