vialab / SMT

Simple Multi-Touch (SMT) Toolkit
http://vialab.science.uoit.ca/smt
GNU General Public License v3.0
43 stars 18 forks source link

Look for Alternative to JVM Shutdown Hook in SMT.init() #165

Open kiwistrongis opened 10 years ago

kiwistrongis commented 10 years ago

SMT.init() adds a shutdown hook in order to close the connection to touch servers properly. This is bad practice, and I know of two other ways to handle the shutdown condition that are most likely better. Basically I'm sure there's a much more solid and less hacky way to handle this.