Commit de51c577 authored by Filippo Carone's avatar Filippo Carone

destroy logic cleaned up

parent c09b9f61
......@@ -90,9 +90,12 @@ public class JVLC implements Runnable {
* This is unreversible.
*/
public void destroy() {
if (!beingDestroyed)
{
beingDestroyed = true;
_destroy();
}
}
/*
......@@ -162,10 +165,7 @@ public class JVLC implements Runnable {
* @see java.lang.Object#finalize()
*/
protected void finalize() throws Throwable {
if (!beingDestroyed)
{
destroy();
}
super.finalize();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment