Skip to content

Instantly share code, notes, and snippets.

@tristaaan
Last active August 29, 2015 14:06
Show Gist options
  • Save tristaaan/b158593cb2a844f873ca to your computer and use it in GitHub Desktop.
Save tristaaan/b158593cb2a844f873ca to your computer and use it in GitHub Desktop.
if (user.refrigeratorRunning){
try{
user.refrigerator.interrupt();
}
catch (InterruptedException e){
system.println("Catching...");
user.refrigerator.terminate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment