474849505152535455
SubmissionRobotThread thread = workerThread; workerThread = null; thread.shutdown(); thread.join(millis); thread.interrupt(); } }