In the thread add code to test a variable and exit if it is set.

Please edit your code and wrap it in code tags. Use the #icon above input box.
Or see: BB Code List - Java Programming Forums