Created
June 14, 2017 19:44
-
-
Save alvaroReina/057cde37c379a2ba5aacd8ab42596121 to your computer and use it in GitHub Desktop.
Exit properly
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
Runtime.getRuntime().addShutdownHook(new Thread(){ | |
@override | |
public void run(){ | |
//close | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment