Commit de51c577 authored by littlejohn's avatar littlejohn

destroy logic cleaned up

parent c09b9f61
......@@ -90,8 +90,11 @@ public class JVLC implements Runnable {
* This is unreversible.
*/
public void destroy() {
beingDestroyed = true;
_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();
}
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