Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Handeler {
- private Thread thread;
- .....
- @SuppressWarnings("deprecation")
- void stopThread() {
- if(thread!=null && thread.isAlive()) {
- thread.stop();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement